Filter by source
All sources GoCardless 6194 PubNub: 2474 Vercel 1664 Ariya Hidayat 849 Serverless 849 Jake Trent 816 Drew DeVault 784 Nic Raboy 734 SitePoint 629 Neon 503 Supabase 435 Shopify 432 Soundcloud 409 Databricks 396 Real Python 394 Johannes Brodwall 378 Jeremy Kun 327 Laravel 296 PostHog 294 Twilio 259 Graham King 257 MapTiler 257 Carlos Becker 252 Scott Johnson 250 Cloudflare 244 Lea Verou 244 Matt Aimonetti 231 Atomic Object 218 Andrew Bancroft 214 Nvidia 210 Stanko Tadić 189 Lerner Consulting 188 Stack Overflow 183 Freek Van der Herten 182 The Daily WTF 168 Raymond Chen 165 Trivago 159 GitHub Old 155 Discord 140 Dan Luu 137 WyeWorks 134 Swizec Teller 133 Una Kravets 132 Auth0 129 Codrops 126 OCTO Technology 123 Reginald Braithwaite 121 Android 119 Jane Street 119 Hostinger 118 Radek Pazdera 118 Warp 114 AWS 110 Antirez 110 Thoughtbot 105 Cerner 103 AdRoll 102 Changelog 101 Jake Wharton 101 Nelson Elhage 98 Martin Fowler 96 dbt Labs 95 Ilija Eftimov 94 Marek Majkowski 94 Docker 87 .NET 86 Finn.no 86 Nick Desaulniers 86 Hayden James 84 Marcelo Rinesi 84 Nordic APIs 82 Timescale 82 Toptal 82 Luciano Mammino 80 Sentry 79 Wingify 78 Jessie Frazelle 77 Monica Dinculescu 77 Matt Warren 76 Drivy 75 Jan Lelis 75 T.J. Maher 74 Paweł Chudzik 73 Kotlin 69 Ebay 68 Mykhailo Kozik 68 Axel Rauschmayer 64 Mozilla Release 64 Evil Martians 63 Confluent 62 Tania Rascia 60 0xADADA 59 Jake Yesbeck 59 Khan Academy 59 Tailscale 59 Dean Hume 57 RoseHosting 56 SurveyMonkey 53 jOOQ 53 Sam Saffron 51 Facebook AI Research 48 Monstermuffin 48 Huon Wilson 45 Philip Walton 45 Dennis Felsing 44 HackerEarth 44 Rust 44 The Pragmatic Engineer 44 Fly.io 43 Josh Sherman 42 Stripe 42 Gleb Bahmutov 41 Robin Ward 41 Philipp Oppermann 40 Armin Ronacher 36 Daniel Doubrovkine (dB.) 36 Alex Russell 35 Grab 35 Addy Osmani 34 Airbnb 34 Pinterest 34 Tumblr 33 8th Light 32 Joe Nelson 32 Brandwatch 31 Palantir 31 Bartlomiej Filipek 30 Domenico Luciani 30 Lazarus Lazaridis 30 Pamela Fox 30 Evan Miller 29 IPFS 29 Vanilla Java 29 Evan Hahn 28 Jonathan Snook 28 PagerDuty 28 Ruslan Spivak 28 Dereuromark 27 Okta 27 Petr Mitrichev 27 Red 27 GitHub 26 Julia Evans 26 Mozilla Hacks 26 Bad Concurrency 25 CSC - IT Center For Science - Cloud Team 25 GameChanger 25 Guido van Rossum 25 Jay Fields 25 Jeff Preshing 25 Life Plus Linux 25 Mark Seaborn 25 Oona Räisänen 25 Srinivas Tamada 25 Stephen Colebourne 25 Steve Yegge 25 Criteo 24 Eli Bendersky 24 Kogan.com 24 Squarespace 24 Dropbox 23 Crystal 22 Elegant Code 22 Babbel 21 Blundell's Android Tutorials 21 Gusto 21 HomeAway 21 Netflix 21 Dave Cheney 20 David Walsh 20 Erlang Solutions 20 Guardian 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 Wilfred Hughes 20 Yahoo 20 Instacart 19 Jeff Atwood 19 Spotify 19 Thumbtack 19 Aaron Patterson 18 Arkency 18 Nikola Brežnjak 18 The Coded Self 18 Chris Wellons 17 Jerry Gamblin 17 Matthew Green 17 Wealthfront 17 Filippo Valsorda 16 Medium 16 Postmark 16 RocksDB 16 Stack Abuse 16 Yegor Bugayenko 16 Zach Holman 16 Amit Merchant 15 Bigcommerce 15 Blender 15 Edward Faulkner 15 High Scalability 15 Housing.com 15 Hypriot 15 Jacopo Tarantino 15 John Wittenauer 15 Lambda the Ultimate 15 Localytics 15 Microsoft Python 15 Robin Wilson 15 Slack 15 Advanced Web Machinery 14 Grofers 14 Helpshift 14 HubSpot 14 OLX 14 REA Group 14 Rob Allen 14 Vlad Mihalcea 14 Bootstrap.com 13 Feedzai 13 Grafana 13 Indeed 13 Lyft 13 Michael Crump 13 Nextdoor 13 Scott Hanselman 13 Strava 13 Bazaarvoice 12 Canva 12 Henrik Warne 12 Jon Skeet 12 Mary Rose Cook 12 Nicolas Liochon 12 Novoda 12 Steve Bellovin 12 Abu Ashraf Masnun 11 Badoo 11 Deliveroo 11 Eric Lippert 11 Haptik 11 Hashrocket 11 JobTeaser 11 Kevin Burke 11 Marco Pivetta 11 New York Times 11 OpenDNS 11 Paypal 11 Ramon Fried 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 Brendan Eich 10 Brendan Gregg 10 Brujo Benavides 10 Clever 10 Curalate 10 Daily JS 10 Daily Tech Video 10 Daniel Schmidt 10 Dot Dev (.dev) 10 Dragan Djuric 10 Eddie Smith 10 Eric Elliot 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 Nick Craver 10 Ofer Zelig 10 Panorama Education 10 Pat Shaughnessy 10 Piotr Pasich 10 Pony Foo 10 Postman 10 ReactJS News 10 Regular Geek 10 Remind 10 RetailMeNot 10 Riot Games 10 Schakko 10 Skyscanner 10 Stitch Fix 10 Teamwork 10 Tikhon Jelvis 10 Tinder 10 Transferwise 10 TrueCar 10 Undocumented Matlab 10 Universe 10 UpGrad 10 VTS 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 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 Sketch Sky Betting & Gaming Soshace Speedledger Sqreen Square Stackshare Swift Swiggy Takipi Temporal Turso Vena Solutions VersionEye Wayfair William Kennedy Zed Zendesk(old) theScore
816 articles Visit blog →

91. Elixir In-Memory Cache (jaketrent.com)

Here's a way to create an in-memory cache in Elixir. Fun!Use caseI thought I needed Redis. But, like many other things, Erlang OTP can handle that for you. Simplify the stack!Erlang (and thus Elixir) has what's called Erlang Term Storage (ETS). It's an in-memory store. When you create a cache table ...

92. SQL Order of Null (jaketrent.com)

What is the order of null in sql? Nestle in close, and I'll tell you.Showdev=# SELECT 1 AS value UNION SELECT null AS value ORDER BY value desc; value ------- 1 (2 rows) dev=# SELECT 1 AS value UNION SELECT 0 AS value ORDER BY value desc; value ------- 1 0 (2 rows)Tellasc means smaller to biggerdesc...

93. AI Inspiration (jaketrent.com)

An AI is not inspired because a computer doesn't have a soul.AI has a limited ability to inspire.Humans are better-inspired by other inspired humans.The human soulHumans have an inner spirit. When we give expression to our inspiration, we create in the world what had started on the inside. My though...

94. Select Hunks to Stage in Git (jaketrent.com)

How to pick which parts of what files you want to stage in git.Stage everythingOften, we want to stage and then commit all our changes in git. To change everything in the working directory,git add .Stage selectivelyTo stage selectively, git allows us an interactive interface for staging. Add the -i ...

95. How AI Iterates (jaketrent.com)

Or, when AI tries again.As coders, we try many solutions. Sometimes it's because we're stupid and haven't learned any better yet. Sometimes it's because we're not happy with the result yet. Maybe something gnaws at us. Maybe a thrill to betterment invites us. We care about certain principles related...

96. Performance Review by AI (jaketrent.com)

Talk about AI is talk about the future. Performance reviews in the age of AI -- I can see it coming.I have heard in various forms that in the future those who don't use AI will be replaced by those that do.This is usually put forward by the techno-optimists. But this isnt't brought up in the same br...

97. CSS-only Toast (jaketrent.com)

Here's a way to create a create a toast UI that toggles visible with CSS only.This has come in handy for me in a form submission scenario. After submission, I want to show a "thank you" message.First, style the toast however you prefer. Then, importantly, hide it:.toast { /* ... */ display: none; }A...

98. What We Are When We Use AI (jaketrent.com)

Sometimes when we're using AI, we're showing our base tendencies.When we use AIWhen we use AI, in some sense it means that we're done creating.We're remixing and reusing.We're ok with average.We're getting it done.We're not concerned about quality.We're focused on quantity.We're making money, not ar...

99. Rank Score Rows Returned in SQL (jaketrent.com)

Here's a way to how to rank score rows returned in SQL.Let's say we have many instances of a thing in our database. In this case, let's say we have many books. We want to create a list of books where we recommend to our friends the best books to read in each genre. If we have read the book, we recom...

100. Map a Postgrex Row to a Struct (jaketrent.com)

Here's how to map a Postgrex wow to a struct.Postgrex RowsPostgrex is a postgres driver for Elixir. It's great for running raw sql against your Postgres database. Your selection/projection gets returned as rows/columns. The columns are returned as a list of strings. The rows are returned as a list o...

101. Test For Bytestring in Elixir (jaketrent.com)

Here's how to test for a bytestring in Elixir.Non-solutionsA couple things that won't work:You can't use is_binary on its own, because it returns true for string type as well:iex> is_binary("wow") trueYou can't use String.valid? inside a guard. You get an error like this:iex> defmodule MyModule do ....

102. Import a Jinja Macro & Use in For Loop (jaketrent.com)

Here's how to import a Jinja macro and use it in a for loop. We're going to do it all! Work, Jinja, work!Define MacroA macro is nice, because you have a template-ready function to reuse. Let's say that we want a macro that will insert nice svg icons for us. It'll take a name parameter out return svg...

103. Narrow Union on Nested Value (jaketrent.com)

Here's how to narrow a TypeScript union type on a nested value in an object.Type NarrowingNarrowing a type means we start with a more-general super type and determine which more-specific sub type we're actually dealing with.In this case, we want to know if something is either a magazine or a book. B...

104. Order Tailwind Styles in Layers (jaketrent.com)

Here's how to order Tailwind CSS styles in CSS @layers.This articles has been updated for Tailwind v4. The original article for v3 is preserved below.Insertion OrderThis is for the veterans out there.You find yourself using Tailwind to compile your CSS. It's your pal because you haven't had to creat...

105. Error Response Shapes in Ash Graphql (jaketrent.com)

What response shapes will different error conditions return in GraphQL. There have seemed to be a lot.These are the ones I checked and catalogued.Bad query syntaxQuerying unknown fieldsFilter/arg not foundBad argumentsBad/unreachable hostUnset variables in queryUnset variables in mutationInvalid var...

106. Restore Postgres Dump to Ash (jaketrent.com)

This is how to restore a pg_dump to an Postgres database managed by Ash. Bet you're excited.I like to do data only dump/restores. This is so that Ash can keep track of all the initial table creation and migrations.Dump ItLet's dump the data from a Postgres data source. Let's say it's production data...

107. What I Learned in Conjure School (jaketrent.com)

Here are a few keystrokes and facts about how to use Conjure to eval Clojure in Neovim.Conjure is a Neovim plugin that supports multiple languages but works great for lisps. You can evaluate code in your editor.These examples are done with vim.g.maplocalleader = ",".I graduated from :ConjureSchool w...

108. Tailwind Parent Selector (jaketrent.com)

Here's how to style a child based on a parent in Tailwind CSS.Parent ClassThere's a special Tailwind class called group. group is the class that identifies the parent. Put it on that parent node.You can create special named groups too (eg, group/my-name). If you have nested groups, you might need th...

109. Burn an MP3 CD in Linux (jaketrent.com)

People still make MP3 CDs, don't they?Gather up some mp3s, put them in a directory, let's say here (.).Then generate an ISO image (with genisoimage) with those files and pipe it into a process to burn the CD (with cdrecord).genisoimage -J -r -pad -graft-points . | \ wodim dev=/dev/sr0 speed=8 -For g...

110. Implementing Ash Policies for GraphQL (jaketrent.com)

Here's how to implement Ash policies for authentication and authorization in GraphQL.Ash.Policies provide a way to declare auth around entities defined in the Ash framework. ash_graphql exposes entities via a GraphQl endpoint.Authentication is proving that someone is who they say they are. Authoriza...

111. Count Git Blame Lines on Current Files (jaketrent.com)

Here's how to count the number of lines in current files by author.This doesn't give you total lines added or deleted by author. It doesn't deal with files that used to be there. It only accounts for the latest author on the git blame. And it only accounts for current files.It will give you a snapsh...

112. Save Variables in SQL (jaketrent.com)

Here's how to save variables in sql for use later in the query.A with statement will provide the key feature. Make a selection (rows) and projection (columns), and you can bind that 2D result to a name.Only a single with statement is allowed in an sql script. You can create multiple variables by sep...

113. Thank You for the Code (jaketrent.com)

You get what you get, and you don't throw a fit.I've seen headlines recently like, "OSS is Dead." This has got me thinking about gratitude and the good it would do us if we were more grateful for the code we're given.Have you ever served a kid food, and while they were eating it, mouth full, they as...

114. Export Multiple Stylesheets to postcss-import (jaketrent.com)

Here's how to export multiple stylesheets to postcss-import.postcss-import is a postcss plugin that allows you to import other CSS files into your CSS stylesheet.Node.js has named imports, and there's magic to them. There's magic here too, but it's next-level, because Node packages were designed to ...

115. Publish an NPM Package to JFrog Artifactory (jaketrent.com)

Here's how to publish an NPM package to JFrog Artifactory.Create a JFrog Artifactory TokenYou use JFrog Artifactory when you want to publish a package to a private registry. The normal, public one at npmjs.com is too public. You want privacy and/or control. Get Artifactory deployed, set up the repos...

116. Transfer Music to a Classic iPod on Linux (jaketrent.com)

Here's a way to transfer music to a classic iPod on Linux.You know the story: your son wants new music on that classic iPod Nano that we haven't touched in months. You forgot how we did it last time. There's a new computer in play. It didn't work. Linux -- that'll do anything, if you only you can fi...

117. Alternatives to Spread Operator Reduce (jaketrent.com)

Here are some alternative options to using the spread operator in an array reduce.ScenarioLet's say that I have an array of objects:const arr = [ { key: 'c', value: 33 }, { key: 'b', value: 2 }, { key: 'a', value: 44 }, { key: 'a', value: 1 }, { key: 'c', value: 3 }, ]And you want to transform it in...

118. Capture Right Click in React (jaketrent.com)

Here's how to capture right click in React.Event HandlerTo capture a click, you use an onClick. That's for a left click.If you're living on the edge and want to capture a right click, use onContextMenu. It does the same thing, but for the right mouse button.function MyComponent() { function handleRi...

119. Sort By Two Fields in JavaScript (jaketrent.com)

Here's how to sort an array of objects by two fields in JavaScript. This is sometimes called a secondary sort.If you sort by multiple fields, it means that the first field is the primary thing to sort by, and the next is secondary, and so on.The only reason you'd get to a secondary sort is if the pr...

120. Making Changes in a Distributed System (jaketrent.com)

You have a change to make in a distributed system. How many pull requests will it take to make a change?An Easily-distributed AppA distributed system has two or more independent deployables. In this most common of scenarios, we have a frontend (FE) client and a backend (BE) server. It's just so easy...
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open