Filter by source
All sources GoCardless 6188 PubNub: 2462 Vercel 1539 Ariya Hidayat 849 Serverless 848 Jake Trent 812 Drew DeVault 783 Nic Raboy 733 Neon 479 Supabase 424 Soundcloud 409 SitePoint 406 Johannes Brodwall 378 Databricks 366 Jeremy Kun 323 PostHog 286 Real Python 286 Graham King 257 Carlos Becker 251 MapTiler 250 Scott Johnson 250 Lea Verou 242 Laravel 232 Matt Aimonetti 231 Andrew Bancroft 214 Stanko Tadić 186 Twilio 181 Atomic Object 176 Cloudflare 170 Nvidia 168 Trivago 158 Freek Van der Herten 155 Stack Overflow 145 The Daily WTF 136 Discord 134 WyeWorks 134 Dan Luu 133 Raymond Chen 133 Una Kravets 132 Swizec Teller 129 GitHub Old 128 Reginald Braithwaite 121 Radek Pazdera 118 Warp 114 Antirez 110 Codrops 110 Jane Street 105 Android 104 Cerner 103 AdRoll 102 Auth0 102 Jake Wharton 101 Changelog 100 Nelson Elhage 98 OCTO Technology 96 Ilija Eftimov 94 Marek Majkowski 94 Thoughtbot 89 AWS 88 dbt Labs 88 Finn.no 86 Nick Desaulniers 86 Hostinger 84 Hayden James 81 Luciano Mammino 79 Martin Fowler 78 Wingify 78 Marcelo Rinesi 77 Monica Dinculescu 77 Matt Warren 76 Docker 75 Drivy 75 Jan Lelis 75 Jessie Frazelle 75 Paweł Chudzik 73 Toptal 73 .NET 69 Lerner Consulting 69 Nordic APIs 69 T.J. Maher 69 Mykhailo Kozik 68 Timescale 66 Axel Rauschmayer 64 Mozilla Release 64 Ebay 62 Kotlin 62 Tania Rascia 60 0xADADA 59 Khan Academy 59 Jake Yesbeck 58 Confluent 57 Evil Martians 54 jOOQ 53 Tailscale 51 Sam Saffron 50 Sentry 49 Monstermuffin 48 RoseHosting 48 Huon Wilson 45 HackerEarth 44 Philip Walton 44 Dennis Felsing 43 SurveyMonkey 43 Fly.io 42 Robin Ward 41 Philipp Oppermann 40 Gleb Bahmutov 39 Facebook AI Research 38 The Pragmatic Engineer 38 Dean Hume 37 Rust 36 Josh Sherman 35 Alex Russell 34 Stripe 33 Joe Nelson 32 Tumblr 32 8th Light 31 Addy Osmani 31 Grab 31 Armin Ronacher 30 Domenico Luciani 30 Lazarus Lazaridis 30 Palantir 30 Pamela Fox 30 Airbnb 29 Brandwatch 29 Evan Miller 29 IPFS 29 Ruslan Spivak 28 Vanilla Java 28 Bartlomiej Filipek 27 Daniel Doubrovkine (dB.) 27 Jonathan Snook 27 Petr Mitrichev 27 Pinterest 27 Red 27 Mozilla Hacks 26 Bad Concurrency 25 CSC - IT Center For Science - Cloud Team 25 Dereuromark 25 Evan Hahn 25 GameChanger 25 Guido van Rossum 25 Jay Fields 25 Jeff Preshing 25 Julia Evans 25 Life Plus Linux 25 Mark Seaborn 25 Okta 25 Oona Räisänen 25 Srinivas Tamada 25 Stephen Colebourne 25 Steve Yegge 25 PagerDuty 24 Squarespace 24 Kogan.com 23 Criteo 22 GitHub 22 Babbel 21 Elegant Code 21 Crystal 20 Dave Cheney 20 David Walsh 20 Eli Bendersky 20 Guardian 20 HomeAway 20 Justin Weiss 20 Michael Herman 20 Miguel Quinones 20 Mike Ash 20 Ole Begemann 20 Paul Irish 20 Robert C. Martin 20 Stefan Parker 20 Target 20 Yahoo 20 Dropbox 19 Gusto 19 Netflix 19 Instacart 18 Nikola Brežnjak 18 The Coded Self 18 Aaron Patterson 17 Jeff Atwood 17 Thumbtack 17 Erlang Solutions 16 Stack Abuse 16 Wealthfront 16 Arkency 15 Bigcommerce 15 Edward Faulkner 15 Filippo Valsorda 15 High Scalability 15 Hypriot 15 Jacopo Tarantino 15 Jerry Gamblin 15 John Wittenauer 15 Lambda the Ultimate 15 Localytics 15 Matthew Green 15 Medium 15 Microsoft Python 15 Postmark 15 RocksDB 15 Slack 15 Spotify 15 Yegor Bugayenko 15 Advanced Web Machinery 14 Helpshift 14 Housing.com 14 HubSpot 14 OLX 14 REA Group 14 Robin Wilson 14 Zach Holman 14 Amit Merchant 13 Blender 13 Chris Wellons 13 Grofers 13 Indeed 13 Nextdoor 13 Rob Allen 13 Scott Hanselman 13 Henrik Warne 12 Jon Skeet 12 Mary Rose Cook 12 Nicolas Liochon 12 Novoda 12 Steve Bellovin 12 Abu Ashraf Masnun 11 Badoo 11 Bazaarvoice 11 Blundell's Android Tutorials 11 Canva 11 Feedzai 11 Haptik 11 Hashrocket 11 JobTeaser 11 Kevin Burke 11 Lyft 11 Marco Pivetta 11 Michael Crump 11 Paypal 11 RisingStack 11 Small Improvements 11 VNGRS 11 Vinted 11 Zendesk 11 Alan Storm 10 Appnexus 10 Artsy 10 BBC 10 Benchling 10 Bill the Lizard 10 Bohops 10 Bootstrap.com 10 Brendan Eich 10 Brendan Gregg 10 Brujo Benavides 10 Clever 10 Curalate 10 Daily JS 10 Daily Tech Video 10 Daniel Schmidt 10 Deliveroo 10 Dot Dev (.dev) 10 Dragan Djuric 10 Eddie Smith 10 Eric Elliot 10 Eric Lippert 10 Erik Runyon 10 Evan Jones 10 Federico Cargnelutti 10 Findmypast 10 Flickr 10 Freeletics 10 GoSquared 10 Groupon 10 Harry's 10 Henrik Lau Eriksson 10 High Scalability 10 Hootsuite 10 Idontgetoutmuch's Weblog 10 Itamar Turner-Trauring 10 Jamis Buck 10 Jesal Gadhia 10 Joel Spolsky 10 Juan Treminio 10 Junior Grossi 10 Kirill Shevchenko 10 Larry Land 10 Matt Cutts 10 Matt Might 10 Mesosphere 10 Miro Cupak 10 Miro 10 NSHipster 10 New York Times 10 Nick Craver 10 Ofer Zelig 10 OpenDNS 10 Panorama Education 10 Pat Shaughnessy 10 Piotr Pasich 10 Pony Foo 10 Postman 10 Ramon Fried 10 ReactJS News 10 Regular Geek 10 Remind 10 RetailMeNot 10 Riot Games 10 Schakko 10 Skyscanner 10 Stitch Fix 10 Strava 10 Teamwork 10 Tikhon Jelvis 10 Tinder 10 Transferwise 10 TrueCar 10 Undocumented Matlab 10 Universe 10 UpGrad 10 VTS 10 Vlad Mihalcea 10 Wilfred Hughes 10 Wojtek Gawroński 10 XING 10 Yammer 10 Yifan Lu 10 Zolmeister 10 eFounders 10 Josh Haberman 9 Nate Berkopec 9 Wemake.services 9 Mike Fogus 8 Ian Hummel 7 Ilya Grigorik 6 K. Harrison 6 Sensible 6 James Long 5 Thomas Young 5 Edgar Aroutiounian 4 Avenue Code 3 Bandcamp 3 James Hague 3 Raymond Hettinger 3 Algolia Anders Aarvik Ariejan de Vroom Asana Atlassian Bjørn Johansen Blake Erickson Bryan Cantrill Capgemini Chen Hui Jing Chien Tran Cloudera Cloudsmith CockroachDB Code with style! CodeName One Codelitt Codeship Commercetools Credit Karma Crowdfire Deezer DoorDash Dragan Gaic Engine Yard Entelo Envato Envoy Eventbrite Federico Tomassetti Figma GIPHY Galois Go GoDaddy Grafana Guilherme Rodrigues Hashnode Heroku Honeybadger Honeycomb IMVU Ievgen Kuzminov Instagram Jobandtalent John Resig Jonathan Dekhtiar Just Eat Kinvolk Kolosek Kyle Kingsbury LINE Linear LiveRamp Liveblocks Made Tech Marc Plano-Lesay Microsoft Edge Moove-it Mozilla Automation Team NPR Apps Nicolai Parlog (CodeFX) Oursky Oxide Computer Paul Lewis Peter Norvig Peter Steinberger Peteris Krumins PicCollage PlanetScale Prezi PullReview Rachel Kroll Radim Řehůřek Ray Wenderlich React Native Render Retool Schibsted Tech Polska Sharethis Shopify Sketch Sky Betting & Gaming Soshace Speedledger Sqreen Square Stackshare Swift Swiggy Takipi Temporal Turso Vena Solutions VersionEye Wayfair William Kennedy Zed Zendesk(old) theScore
812 articles Visit blog →

331. Keyboard Control of Buttons in Testing Library (jaketrent.com)

Make buttons controllable via the keyboard within test using testing-library.Test is Different than BrowserIn the browser, we can focus a button and press enter, and the onClick handler is triggered, and all is good.In the test environment, it's a different story. Here, we'll look at tests written f...

332. Prefer Action (jaketrent.com)

Ideas come and go. Act on them now or (quite possibly) never.Advice to self:Strike while the idea is hot. (That's a good Jim Rohn'ism I picked up.) When it comes to you in a flash, you might remark to yourself how great the idea is. But it will leave just as quickly if you do nothing about it.Our em...

333. Re-render DefaultValue when Value Changes in React (jaketrent.com)

Here's a method to re-render a React input when its defaultValue prop changes.Why Update defaultValuedefaultValue is meant to be uncontrolled. So, why would you want to control it?defaultValue is supposed to allow an input to receive some starting data but then React usually will forget that it was ...

334. Find and Replace Over Multiple Files in the Shell in MacOS (jaketrent.com)

This is a shell command to find and replace over multiple files recursively in MacOS.This is surprisingly difficult to figure out how to do. There are many options an nuances. This may work for your particular OS version, Terminal, Shell, and installed tools. Lol, what a disclaimer!Anywho, the comma...

335. Set Colors in Vim (jaketrent.com)

Here's are some methods on changing colors for the UI in Vim.Color one-offs in .vimrcMost of the colors you have will probably come from a theme. I've been using Dracula lately, and it's great.But if you want to make one-off color adjustments yourself, you can stick those in your .vimrc file.Highlig...

336. Respect OS Dark Mode in JavaScript (jaketrent.com)

Here are a couple methods to the OS dark theme within JavaScript.Respecting the user's OS theme color is something that more websites should do. It's magical when it works.How many of you sit for hours looking at a dark terminal window while the bright white browser window blazes next to it, burning...

337. Prevent Children from Filling CSS Grid Cell (jaketrent.com)

Here's a way to keep the contents of a cell in a CSS grid layout from filling the whole width of the cell.Columns are easyWhip out a grid. It'll solve your problems. They're easy to start and powerfully affect your layout..container { display: grid; grid-template-columns: 1fr 1fr; }I've got two equa...

338. Ignore Dependency Types in Typescript (jaketrent.com)

Here's a method for how to exclude typings files from dependencies when compiling TypeScript projects.Install a problem dependencyThe problem comes when we install a dependency into our already-TypeScript project that has other typings that mess up the project we're in.For example, I was working on ...

339. Anatomy of Letterforms (jaketrent.com)

Letters are made up of special lego bits. Here is an incomplete catalog.I just watched a great typography fundamentals video on Pluralsight.A part of that training was learning some of the specific parts of letterforms in typography. Here are some of the bits I learnedStrokeGenerically, a line in th...

340. Magical Design Lessons (jaketrent.com)

Here are some lessons in creating magical designs from Peter Smart from Fantasy Interactive.These are drawn from his Awwwards video, Creating Magic.Minimum Love-able ProductWe all know what an MVP is. It's the worst thing that provides still provides value that we can release to our users. If we hav...

341. Mock Fetch in a Jest Test (jaketrent.com)

This is a way to mock the fetch function in a Jest test.Why Mock FetchWe are probably using test fakes to avoid testing dependencies. In the case of fetch, we want to avoid the dependency of the network and whatever endpoints we might be making requests to.Avoiding the network will make our test les...

342. Direct Requests Bring Results (jaketrent.com)

If we are direct in our communication, we are more likely to get the results we seek.Understanding what we wantTo be direct, we must understand clearly what we want. We have to think a little more to be direct. Without this clarity, we won't be able to get to the direct requests in our communication...

343. Tech Debt During an Economic Downturn (jaketrent.com)

Does tech debt increase during an economic downturn?Less Money All AroundIf there's a lack of money in the general economy, as in a wider economic downturn, there's probably a lack of extra funds within our company as well. It's difficult to make a sale. Clients are holding their coin closer. The mo...

344. The Testing Pyramid Shows ROI (jaketrent.com)

The testing pyramid can point out the greatest ROI for our tests.Traditional Testing PyramidThe testing pyramid is traditionally used to show where we should focus our testing time and effort. According to it, we should do mostly unit tests because they're cheap, stable and fast.[Testing pyramid gra...

345. Screen Reader Support Plan (jaketrent.com)

Screen reader support will get more real with a support plan.Browser SupportBrowsers get a support plan. There's a model for which browsers we'll support. There are support docs that state our policy. Users that come to our site know what to expect. When we file bugs, we know to report the browser i...

346. Upgrade Incompatible Postgres Data Directory in Docker (jaketrent.com)

Postgres docker image upgrades require postgres data upgrades.Incompatible Database FilesAt some point, you'll have a docker image for Postgres that you want to upgrade. I had been working on a certain version and upgraded to the next. I got the image pulled down fine, but after that, the data that ...

347. To Reroute or Restart (jaketrent.com)

How do we sense if we should keep building or start from scratch?Historical ContextWe want to make progress in the thing we're building. How did this thing start? It came into being because of some purpose. It wasn't made and doesn't now exist in a vacuum. There was a historical context within which...

348. Colorful Vocabulary (jaketrent.com)

Here's quick summary of the meaning of color vocabulary.To say something is "the color" blue, for instance, is to over-simplify. We can describe a bit more about color with a bit more vocabulary.HueHue is the word that we really mean when most of us say "color". Going around the color wheel, when we...

349. Narrow Interface Type in TypeScript (jaketrent.com)

If you narrow an interface in Typescript, you can operate on it more specifically. And you can keep your type safety.Multiple TypesNarrowing types requires first the challenge of having two or more types. Let's say you have two interfaces:interface Legacy { render(): void } interface Current { updat...

350. Tests That Really Test (jaketrent.com)

Tests that actually exercise the system will provide value.Any TypeThere's often discussion about which type of tests one should be writing: unit, integration or functional, etc. But I think this point matters less than other things. It matters much more what our test is actually testing.It might fe...

351. Tab Like a Mouse (jaketrent.com)

Tabbing with the keyboard should approximate what a mouse does.Like a MouseIf you're not a keyboard-first or -only user, it can sometimes be a challenge to determine what the keyboard tabbing experience should be like. This rule of thumb should help:Try to make the keyboard tabbing approximate what ...

352. What Level Should I Log At? (jaketrent.com)

What level should I log this at? This is my approach.What is Logging?Logs are developer-facing feedback. Developers place lines of code in their source to prompt logs -- messages and associated data -- to be output. It is output by a program at runtime. It might go straight to stdout, a file, a UI o...

353. Value Integrity (jaketrent.com)

We want to live true to something. What we believe in is different. But the desire to have integrity, to live to it, seems universal.What We Live ByWe believe in universal truth and right, set by God. We want to live to learn and act as best as we can to that divine standard.Or we feel a compass ins...

354. Deadlines Constrain the Solution Space (jaketrent.com)

Reasonable deadlines also constrain the solution space.Purpose of DeadlinesThis is what deadlines are for, after all. They help us finish. They help us make up our minds. Among other things...They also help us have a more accurate view of when something will be done. They help us coordinate a shared...

355. Explore the Unhelpful (jaketrent.com)

It might be worth exploring the unhelpful -- and it might not.When you're trying to learn, you might try something that isn't going to yield fruit. But unless you try, how do you know?When you're trying to make sense of something, you might compare or contrast it to other similar things. These model...

356. Docker Runs Server Junk (jaketrent.com)

I ran Docker yesterday, and I thought to myself, "Docker is nice to run a bunch o server junk."What, junk?Of course, "junk" doesn't sound thrilling or particularly nice, and I guess that's how I felt the other day. That's what makes Docker nice. You can throw something into a black box and now have ...

357. Configure TypeORM by Injecting NestJS Config (jaketrent.com)

NestJS comes with nice integration with TypeORM and with a nice @nestjs/config package. But getting them to work well together using dependency injection was a bit of a trick.The docs make it look easy, and in the end it does look easy. For some reason, the docs seem incomplete and the solution not ...

358. Record Vim Macros (jaketrent.com)

Macros are sequences of commands in Vim that can be recorded to build up more complex tasks and then run them again.Record a vim macroThis will put you in a mode where you'll be recording your commands as they run until later, when you say to stop recording.q - start the recording.a-z - store the ma...

359. Lerna Publish to NPM Without a Git Commit (jaketrent.com)

If you need to publish a Lerna-managed packaged to npm without commit and pushing to Github, here's a way.Lerna VersionsWeird things seem to happen infrequently enough with Lerna that they always leave me wondering what happened and at a loss as to the resolution. Most of the time, Lerna does a grea...

360. 100vw Horizontal Scrollbar (jaketrent.com)

You'd think that 100vw would fill the viewport and no more, but that's not always true. Sometimes it overflows horizontally.The mysteryWeb dev has its share of mysteries to solve. Some days it's amazing anything works at all. Today we had one of those. There were users reporting a horizontal scrollb...
Type to search HN and engineering blog articles
Press Escape to close  |  to navigate  |  Enter to open