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 →

61. Change Favicon Based on Color Scheme (jaketrent.com)

Here's how to change an SVG favicon.svg based on the user's color scheme preference.Set the faviconFirst, create an SVG favicon, then set it in the document's head: A common path is the root. Just put it wherever you want to serve your static assets from and adjust the href accordingly.Adjust the sv...

62. Owners Do it Best (jaketrent.com)

Owners of code care and know the most and will thus do the best job.Programmers are not fungibleManagers try to load balance programmers across projects like stateless computer systems that can run anywhere just as well.But that's not the case. Programmers work best in code that they know, with the ...

63. useReducer in TypeScript (jaketrent.com)

Here's how to type React.useReducer in TypeScript.import React from 'react' /* 1. Create a union type for the actions that you have */ type Action = SearchAction | ToggleUserAction interface User { id: string } /* 2. You can differentiate actions based on type string */ interface SearchAction { type...

64. Engaging as a Human (jaketrent.com)

Life is full when we are engaged, even as some opt themselves out in their use of AI. Let's keep as many of us as possible engaged in life.We were created to act, not to be acted upon. We humans are real agents upon the earth.We have a creative spark in us that needs nourished. It's a part of what i...

65. The Moral Use of Tools (jaketrent.com)

How we use a tool is totally our responsibility.I was reading a very interesting article about the widespread use of and implications of AI. The author asks the question, "What is an academic credential worth if it only means you were good at ChatGpt?" The implications are interesting, but the answe...

66. Map Naming Convention (jaketrent.com)

Here is a convention I love for naming data manipulation functionsThe prefixThe prefix I love to use in function names is map, as in mapAThing."Map" means to go from one data format or shape to another.When naming the entire function, use map as the prefix and then the noun of what your mapping to (...

67. Disable Pagination in Ash (jaketrent.com)

Here's how to disable pagination in Ash framework for Elixir.ScenarioI'm using ash_graphql and trying to get a query to work as desired. A review entity has many projects, via a many_to_many relationship.I want to query a review that will only ever have a handful of projects, so the join to project ...

68. Actual Intelligence (jaketrent.com)

That's AI -- actual intelligence.I love this bit by Steve Wozniak. He plays cute with the AI question from the eager reporter. Sure, I try it. Sure, it's ok. But you know...I pretty much avoid LLMs because I want things to be really... that I know is accurate. Like something works rather than it did...

69. Hiring Boxed Programmers (jaketrent.com)

Hiring programmers instead of training them is like buying boxed software, hoping it'll work out of the box.Buying boxed softwareBoxed software is so tempting to the manager with a problem to solve. The seller's marketing prowess convinces him that, finally, the silver bullet must be real this time....

70. AI-mediated Business (jaketrent.com)

An AI-mediated business will eventually be worse.Businesses are falling all over themselves to breathe in more AI. Will we eventually choke on a gob we can't swallow? Or will we slowly saturate ourselves until what we've created is fast but soul-less. Integration of AI into business processes could ...

71. AI Ads (jaketrent.com)

What will we get when AI has been fully utilized as a marketing medium?Marketing on AIAI has eyeballs. Now what does it need? Ads.It's coming. Of course, it is. Building AI models is expensive. They need a way to recoup investment and create some (ick!) stickiness with vendor partners.When will the ...

72. Turn Off Phoenix Access Logger (jaketrent.com)

Here's how to turn off Elixir Phoenix's Logger.The solution is simple. But it was surprisingly-difficult to find. Here's the Phoenix.Logger doc. But, only after the guy on the forum goes unanswered, and Hermano Valim suggests in this (old) GH issue to use log_level: :error.But I don't want log_level...

73. The Cost of AI on the Cutting Edge (jaketrent.com)

Different approaches to keeping up. Stop the bleeding.An hour of AI per dayOh brother. A new aphoroism, but born of the popular craze of the time, nothing timeless.It was tweeted that:An anecdotal survey of GauntletAI grads came to the consensus that staying on the cutting edge of AI takes about one...

74. Mock HTTP Calls in Elixir Tests (jaketrent.com)

Here's a way to mock HTTP requests in Elixir ExUnit test.Install libraryThere's a nice library, mox, which we can install via mix.exs deps:def deps do [ {:mox, "~> 1.2", only: test} ] endMock in test environmentIn our app, we use the httpoison library for doing web requests.In our test environment, ...

75. Wrapping Something That's Not Yours (jaketrent.com)

What's the cost of introducing something that's not yours to wrap something that's not yours?DependencyYou use something that's not yours.You -> NY1That thing that's not yours (NY2) exposes a public API. This how you talk to it and it talks to you. Well, you don't like the public API. Maybe you thin...

76. The Flattening & Reshaping of Experience (jaketrent.com)

I was flat, but now I see.Digression and progressThis is a post about /life as much as it is about code. But it's an aspect of life profoundly affected by code.Life has been made to be more flat. But life wasn't meant to be flat, or at least mostly flat. Even in a world where digital flatness define...

77. IRC Client in Terminal (jaketrent.com)

Here's a solid IRC client for the terminal.Install a clientWant more terminal time? What better place for programmer chat?irssi is a solid little IRC chat client. Install it:sudo apt install irssiChoose a serverWell, where do we want to go? Let's chat Elixir. It used to be on freenode but moved to L...

78. Accept JSON Object in Ash Graphql (jaketrent.com)

Here's how to send json as an input variable to a graphql endpoint in ash_graphql.EndpointAsh is all about the declarations. I hereby declare that we'll write an endpoint that takes a JSON object. For our purpose, json just means an object, or a non-scalar.defmodule MyEntity do # ... actions do crea...

79. Npm Install is Easy (jaketrent.com)

Npm install is easy, but the results may not be simple.The claim of easyI saw a Hackernews headling: "Make SVGs interactive in React with 1 line".It caught my eye. It sounded cool. I still think it is. But what a funny let-down I got when I was linked off to the "Show HN" svggles homepage and saw th...

80. Reviewing AI-generated Code (jaketrent.com)

AI's involvement decreases trust and makes reviews more intensive.Source determines trustWhere code comes from establishes my starting level of trust when reviewing code. If it's from John Carmack, I'm already fawning over it. If it's generated from an AI, I'm already more skeptical of it. Code cont...

81. Set Default Browser in i3 (jaketrent.com)

Here's how to set the default browser in i3.xdg is this useful standard for how to handle application programs in Linux.If you run xdg-open https://jaketrent.com, it'll open the url using a default browser. This is great for opening URLs from the command line.What if the browser you're using recentl...

82. Dull the Cutting Edge with AI (jaketrent.com)

AI can bust out a lot of code. But where will actual improvement come from?PastA large-language model, LLM, is created with a ton of ingested data. For coding, where does that data come from today? Source code, docs, tutorials, questions and answers, forum conversations, chat logs. These are artifac...

83. AI Mainstreams Plagiarism (jaketrent.com)

It seems that AI has mainstreamed plagiarism, and surprisingly few seem to care.Committing my codeA person sits down to write code. His AI assistant is hot and ready. Type, type, wait... tab, insert, save, commit, push, deploy.Whose is it?This person claimed the code as his own. Is this plagiarism?W...

84. Share Setup Data in ExUnit (jaketrent.com)

Here's how to share setup data between test cases in ExUnit.Expensive tests tend to want to do many assertions in one case.Then you end up with this, where everything's crammed into one test case:test "generic desc" do # many set up steps # asserting thing one assert(one_thing == "one") # asserting ...

85. See your PR from the git cli (jaketrent.com)

How to see your PR from the terminal using git.With git, we can clone. We have a local copy. Then we push changes upstream. Often we're doing a pull request to the upstream source. Often this is somewhere like Github. And often pull request reviews are done via a github.com web ui. Have you ever, in...

86. Follow Project Patterns (jaketrent.com)

Projects establish patterns, or ways of doing things. Patterns are made in implementation (ie, code or interface) and design (ie, choices made that led to those implementations).I'm talking little-p patterns generally, not Gang of Four Patterns or anything like them.Projects without patterns are mes...

87. CSS-only Modal Dialog (jaketrent.com)

Can we code a modal dialog with CSS only? No.State of the specAs of this writing:Now there's an HTML dialog element that has baseline browser support.People still want a way to open it via HTML.People in that thread were dismissive and indicate that commandfor and command attributes will allow such ...

88. Thread in Arbitrary Position in Clojure (jaketrent.com)

Here's how to thread both first and last and middle in a single Clojure thread expression.If the output of one form is passed to the input of the next in a long chain, it's often nice to express this as a thread.Thread firstIf, for every form in the thread, you always want to pass the output as the ...

89. AI or Not, Understand, then Commit (jaketrent.com)

When AI spits something out, you better understand it before you use it.If you don't...How will you know if it's the right thing to do?What are you expecting your code reviewer to do?How will you answer any questions about the code?How do you judge if there are any bugs in it?How do you know if it's...

90. Install Elixir LS Lexical for Nvim (jaketrent.com)

Here's how to install the best Elixir language server, lexical, for nvim.Frankly, the first part of this article is not needed by most, because there's already a great installation guide for lexical.I like keeping a record of important things that I've done in my dev experience, so this is for me. B...
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open