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 504 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 →

211. Define Functions in Clojure (jaketrent.com)

Here are some different syntax options for defining functions in Clojure.Most explicit to most implicit, longest to shortest. Repetition of the same function body.Common: defnThe one you'll see the most is with the defn keyword:(defn is-published? [x] (not= "true" (:draft x))Shorter, Nested: fnNext ...

212. Filter a Map in Clojure (jaketrent.com)

Have some keys dragging you down? Let's filter those bad guys out. This is Clojure. Ready your parens.The Map(def articles {:a {:draft "false"} :b {:draft "true"} :c {:draft "true"} :d {:draft "false"}})Looping Through the MapTo do this, use a for expression. See the Looping Through a Map in Clojure...

213. A Decade of React (jaketrent.com)

Here's my current opinion. Not comprehensive. Almost wonderment.The DecadeWhich decade? The decade is mine. I've written a lot of React in that time. It has been a great tool.Now, one of the latest features, React Server Components, has me thinking about that decade of React.This is recent news beca...

214. Pipe a File to Clipboard Using xclip (jaketrent.com)

Here's how to copy the contents of a file to the system clipboard using xclip.XClipxclip is a cli for copying things. Things is X. X Windows. A window management system that you're probably using in Linux.The MacOS equivalent is pbcopy.PipingThis is probably your second-favorite form of piping behin...

215. asdf: The Best Version Manager (jaketrent.com)

What's the best version manager today? asdf.What is a Version ManagerManage what? Runtimes. So, I guess it's a runtime version manager.What's a runtime? A platform you build and/or run your code on, like Node.js, Ruby or Java.For a version manager, you'd usually be talking about something like "Node...

216. Keep an Image in Aspect Ratio (jaketrent.com)

What could be more satisfying that this: The image size changes, but the image is kept in the correct aspect ratio so that its shape doesn't get distortedFlexible ImagesIn the era of a bajillion + 1 viewport sizes, many images on your site will grow or shrink with the space available to them.Aspect ...

217. Convert FormData to JSON (jaketrent.com)

You guessed it! This is how you convert FormData to json. Yippee!Make a form Capture the SubmitNow intercept that submit event:function handleSubmit(evt) { evt.preventDefault() const json = formatForm(evt.target) // ...ajax submit, or whatever } document.getElementById('yowza') .addEventListener("su...

218. Bubble Events in React (jaketrent.com)

This article explains how to bubble events up the DOM to a single event listener in React.Event BubblingIn DOM, an event is sourced on a particular element. That is the event target. If you click a button, that is the source. If you submit a form, that is the source.An event that originates on a chi...

219. See Progress of dd Process (jaketrent.com)

Here's how to see progress of a terminal process like dd.Needs some visibilitydd is a great program for copying files to disks, as in for creating bootable media. But it gives no output by default. These can be long processes, and it can lead you to wonder if it's still working, where you're at or w...

220. Install Docker Desktop on Ubuntu (jaketrent.com)

Here's how to install Docker Desktop on Ubuntu.Download the .deb fileGo to doc.docker.com and download the latest .deb package.There are some instructions there on what to do:sudo apt update sudo apt install ./docker-desktop-4.22.1-amd64.debBroken packages problem on installFor me, I had a problem w...

221. Seed Sqlite with Data (jaketrent.com)

Here's how to seed sqlite with data.What to Git CommitSqlite is a self-contained database. There's a file that you can put right in your repo.But should you commit your .sqlite database? It'd probably be better not to.Instead of committing tables, sequences or constraints, it'd be better to commit ....

222. CSS-only Fading Slideshow (jaketrent.com)

Here's how to make a slideshow with just css.The MarkupCreate a container and the images that you want in your slideshow as direct children: The StylesThe styles are dependent upon the number of slide in the slideshow. This example shows 5 slides. The animation timings are also dependent on the leng...

223. Remap Keys in i3 (jaketrent.com)

Here's how to remap a keyboard key in i3.Controlled by XX Window System is a window system for Unix. Aka Xorg. Aka X. Aka X11, because v11 is its latest stable release. This is the default display server for Ubuntu/derivatives.Keyboard mapping is controlled by X, not i3 per se. i3 is the window mana...

224. Adjust Keyboard Repeat Rate in i3 (jaketrent.com)

Here's how to adjust your key repeat rate within i3.Controlled by XorgX Window System is a window system for Unix. Aka Xorg. Aka X. Aka X11, because v11 is its latest stable release. This is the default display server for Ubuntu/derivatives.Keyboard repeat is controlled by Xorg, not i3 per se. i3 is...

225. Set Screen Brightness in i3 (jaketrent.com)

Here's how to set screen brightness in Linux terminal.Install CLIYou need a little tool:sudo apt install brightnessctlCurrent and Max BrightnessYou can see what the current brightness level is and what the max possible level is by typing:brightnessctlAnd getting feedback like:Device 'intel_backlight...

226. Compile JSX in @swc/jest Tests (jaketrent.com)

Here's how to compile JSX in jest tests that use SWC, or Speedy Web Compiler.InstallWellll, this is an article about a toolchain that's getting a little long. Of course, not as bad as it could be. We have only one babel plugin here, after all.npm install jest @swc/core @swc/jest @babel/core @babel/p...

227. Start Server in Jest (jaketrent.com)

Here's how to start a server in Jest.Test ScenarioJest is a test environment. It'll run all sorts of tests. Most commonly, you might set up a unit test. You'll import some src from your test, exercise it and make assertions on output.But sometimes you might want to test something larger than a unit....

228. Creation is the Point (jaketrent.com)

Creating is one of our deep human purposes. We would be wrong to remove ourselves for those acts or to avoid them.The PointCreating is the point. This is what makes life satisfying. Creation > consumption. It feels different. It speaks to us. It's in our nature. It's a part of our destiny.It require...

229. Maybe Don't Write a Test (jaketrent.com)

Whether you prefer white-box or black-box testing, sometimes testing feels like a box. Well, let's think outside of it. What might we get for not writing tests?You Mean, Never Test?No, sometimes I really like to test and find it valuable.ObviouslyIf we don't write a test, what might we get?Maybe bug...

230. Change Directory in Python Subprocess (jaketrent.com)

Here's how to change directory when shelling out to a process in python.I'll show two methods. I want to run each process in the run_path, set to some valid path. This example is a process called pydeps, but it could be anything, os.getcwd(), what have you.First: cwd import subprocess process = subp...

231. Photo Slideshow in Ubuntu (jaketrent.com)

Here are a couple tools to start a photo slideshow in Linux.fehMy favorite is this lightweight cli, called feh.Install:sudo apt install fehPoint the command at a directory with photos:feh -F ~/my/photos-F is for fullscreen, containing larger photos in the viewport.Use arrow keys to navigate through ...

232. Best Practice Overload (jaketrent.com)

There are so many ways of doing something. The important things is that you do it. And get along with the team you're doing it with.Practice vs. Delivered ValueI think there's a difference between a practice (a process for creating) and delivered value (the problem solved with the thing delivered). ...

233. Timezone-specific Date Accessors in JavaScript (jaketrent.com)

Here's how to access a date's fields for a specific timezone.What You Have in DateJavaScript Date has accessors for date fields. It only has two options, here seen for the hours field:Get the field in local time (eg, new Date().getHours())Get the field in UTC time (eg, new Date().getUTCHours())As fa...

234. Form Submission in Next.js 13 (jaketrent.com)

Here's how to submit a form to the server in Next.js 13.The 'ol Server RenderWhat is old is new again. "We just released this progressive, inventive and amazing new release: Next 13! Now even React can do a server rendered HTML page."Feels like React's Lost Decade. In 2014, Rails devs were saying th...

235. Query Hubspot with GraphQL (jaketrent.com)

Here's how to query Hubspot with GraphQL.What is GraphQLGraphQL is a query language for fetching and writing data. For web applications, there's usually a single endpoint available over HTTP where available data can be queried. As a query language, it has a syntax kind of like json, showing just the...

236. Trends in the Social Network (jaketrent.com)

Here's where are the trends in social networks seem to be leading us.The Need to ConnectConnection with our fellow humans is one of the most important and satisfying experiences in life. Recent technological development has allowed worldwide social networks over the Internet. The potential is there ...

237. Simplify vs Manage Complexity (jaketrent.com)

Here's the difference between simplifying and merely managing complexity.The Better OptionEssential complexity is inherent in a domain. It won't go away. If you're going to solve the problem, you must face it and deal with it. Or change the paradigms of the domain itself so that the essential proble...

238. Global Access to Container Queries (jaketrent.com)

Containers are queryable globally. Here's how.Container Queries are GreatIt's amazing that @container queries are here and widely available.Different from @media queries, which interrogate the viewport width, @container queries interrogate DOM element widths.Containers Globally AvailableWhen you def...

239. Tmux Dev Env Setup Speedup (jaketrent.com)

Tmux can help you set up your development environment more quickly.Many Tool OptionsThere are many tools used to make development environments work better or faster. For example, containerization with docker and docker-compose. I don't love these tools because of the cost of the abstraction: getting...

240. Ubiquitous Language Tips (jaketrent.com)

Here are some tips on using a ubiquitous language on your cross-functional team.Martin Fowler really knows more about Ubiquitous Language and its importance. Here are a few of my tips.Mean the Same ThingOn a cross-functional team we would likely have developers, product managers, designers, user rep...
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open