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 Nordic APIs 69 Mykhailo Kozik 68 Lerner Consulting 67 T.J. Maher 67 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 →

91. 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...

92. 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...

93. 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...

94. 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...

95. 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...

96. 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...

97. 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 ....

98. 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...

99. 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...

100. 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...

101. 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...

102. 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...

103. 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...

104. 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...

105. 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...

106. 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...

107. 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...

108. 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...

109. 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...

110. 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 ...

111. 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...

112. 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...

113. 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...

114. 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...

115. 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...

116. 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...

117. Make a Lowercase Enum in Absinthe (jaketrent.com)

Absinthe is an Elixir library that allows you to specify a graphql schema in Elixir. Here's how to make a lowercase enum in Absinthe.By default an enum in Absinthe will be exposed as all-uppercase values. Here's the enum:enum :salty_slug do value(:foaming) value(:nasty) endThen when queried:query my...

118. Writing a Subquery in Ecto (jaketrent.com)

Here's how to write a subquery in Ecto using the in operator.Subqueries allow you to embed a query inside of another query. This is helpful for building up data for the purpose of your main/outer query. A classic example is, "Select me objects that match the object ids in this subquery," where that ...

119. Run an Ecto Query in an Ash Manual Action (jaketrent.com)

Not getting the data you want from your Ash action? Try a manual action, in Ecto, hombre!After Many AttemptsI had tried many things. Ash makes things so nice and tidy with its cool, terse macros for everything. But filter(expr()) was failing me. Manual calculations were working, but then I couldn't ...

120. Create a Custom Commitlint Pattern (jaketrent.com)

How to create a custom rule for for a git commit log formatYou can read about how to setup commitlint to enforce your log format. And you can choose a pre-existing format, such as "Conventional Commit".But in this case, we want to create our own custom format. We want each of our git commit log titl...
Type to search HN and engineering blog articles
Press Escape to close  |  to navigate  |  Enter to open