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 Lerner Consulting 68 Mykhailo Kozik 68 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 →

181. Why Use the function Keyword in JavaScript (jaketrent.com)

Here are my reasons to use the function keyword when declaring functions in JS.Using the function keyword in JavaScript has gone out of vogue since the advent of arrow functions (ie () => {}) in es2015. To declare a function with the function keyword, you write:function myFunction() {}And with an ar...

182. Open Git Log Files from the Terminal (jaketrent.com)

Here's a way to open files from a git log of file paths.WhyGit log is a great starting point to open relevant files. These might be files related to a feature. Or they might be files that you've recently edited.If you open the git log, it'll list paths to these files for you. Instead of copying and ...

183. Mock process.env in Jest (jaketrent.com)

Here's how to mock out process.env in a Jest test.This essentially from this StackOverflow post, reproduced here for my own reference.The ConceptIt turns out that you can set process.env to the value you want, not just read from it. What we'll want to do is save a version of the original process.env...

184. Format and Parse Naming Convention (jaketrent.com)

Here are some conventions I love for naming string de/serialization functions.The namesThe names are parse and format. Prefixes, as in: parseAThing or formatAThing.I love these names. There are many std libs that use these names for things like dates and strings.When to useWhen a string is being cre...

185. Prefer Local, Specific Code (jaketrent.com)

As a default, prefer your code to be local and specific. This preference will make your code easier to understand and maintain.Relation by LocationIf code is colocated, it's easier to see what uses what. The callers and callees are side by side. You can see the association. The caller is not reachin...

186. Reused Means Coupled (jaketrent.com)

Reusability has costs. We often ignore those costs. One cost is coupling."Make Your Code Reusable""Make your code reusable." - This sounds great."Couple your code to other places in the codebase." - This sounds bad.At least in part, they mean the same thing -- reused and coupled. But often we say th...

187. Start Apps in i3 with Keyboard Shortcuts (jaketrent.com)

Here's how to start apps using i3 keyboard shortcuts. Or: How to make an i3 app switcher.You have a tool, like your screenshot tool, flameshot that you want to start when pressing a global key combination.Set Key BindingYou're in luck. i3 can help you. Pop open the config:nvim ~/.config/i3/configMy ...

188. Install Font on Linux (jaketrent.com)

Here's how to install a new font on Linux for your user.Where Fonts LiveThe font files -- those happy .ttfs -- need a place to live. Give them hearth and home:mkdir ~/.fontsGet a FontIf you need a good one, you coder types, grab a beautiful mono font -- no, better!, nerd font: IBM Plex Mono:wget htt...

189. Undo Git Commit Amend (jaketrent.com)

Here's how to undo a git commit amend (and just about anything else).What is an AmendWhen you amend, you're adding extra content to an existing commit. Your amending (or augmenting) something additional onto something original. And it becomes a new thing.But if I do a git log after an amend, I still...

190. Simple Static Site on Nginx on Docker (jaketrent.com)

Here's about the simplest static site on Docker you can make.Deployment TargetDocker can go a lot of places. So many places allow you to deploy with Docker. So, can you run your app in a Docker environment? Oh yeah, sure.Create Static SiteThere are so many static site generators. But what's the simp...

191. Share Terminal Amongst Multiple Processes (jaketrent.com)

Here's how to control multiple processes in a terminal.tl;drC-c - kill process[mycommand] & - background new processC-z - background foreground processjobs - see background processesfg - restore latest bg processfg %1 - restore bg process by job id[mycommand] &| - separate process from terminalProce...

192. Add a Printer in i3 (jaketrent.com)

Printing in Linux can be challenging. My experience was less than straightforward. Here is the winding path of things I learned, experimented with and troubleshot. Eventually, I did get a PDF to print.CUPSWhat is CUPS? It stands/stood for Common UNIX Printing System. It converts the print job into a...

193. Hide YouTube Shorts (jaketrent.com)

Finally, here's how to hide Shorts sections on YouTube.com.Shorts are TerribleI wish YouTube would allow an official top-level option for this. But they don't.Short videos, anywhere from a few to several seconds long, are the junk food of Internet video. As if there wasn't enough junk in that catego...

194. Rip an Audio CD in Linux (jaketrent.com)

Here's how to have a rippin' good time ripping an audio CD in Linux.InstallSo many tools, but here's a great cli:sudo apt install abcdeFind CD-ROMInsert your CD, then find the device:lsblkLook for the "Rom" line, like this:NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS ... sr0 11:0 1 382.1M 0 rom/dev/sr0 ...

195. Burn Audio CD in Linux (jaketrent.com)

Here's one way to burn an audio CD in Linux.Get the musicFirst, gets some tunes. Mount the NAS. Create the playlist in CMUS, export it, and we'll start from there.Copy Playlist Files to Single LocationLet's get all the music you want on the CD into one location. Let's start with a plaintext playlist...

196. Create Playlist in cmus (jaketrent.com)

Here's how to create a playlist in cmus, an in-terminal music player for linux/mac/terminal-things.InstallPlaying 44100 Hz from the terminal is what all the cool cats are doing. It's a great music library manager and player:sudo apt install cmusAnd open it:cmusI like cmus. But if ya'll have a really...

197. Take a Screenshot in Linux (jaketrent.com)

Here's a tool to take a screenshot in Linux.One thing I love about MacOS is the built-in screenshot utility. It's always there. It works well. I've come to use it a lot.When I'm in Linux, I can miss such a tool. Luckily, there's a great, free, open-source option, Flameshot.InstallRun:sudo apt instal...

198. Color Picker in Linux (jaketrent.com)

Here's how to access the color picker in LinuxI recently wrote a post on how to access a color picker in Win 11. Felt like this might be a good counter to that.Slick Picker: pick-colour-pickerIt's Linux: there are a bajillion options here. For one, try ColourPicker. First, install with snap:snap ins...

199. Format Clojure Code in Neovim (jaketrent.com)

Here's how to format clojure code in neovim.LSP HelpNeovim has built-in LSP abilities. Null-ls gives it more abilities. This project was very recently archived, so the future of it (or alternatives) is unclear, but this is what I will use for now.Null-ls has some build-in sources. Importantly, it kn...

200. HTTPie: Simpler Alternative to Curl (jaketrent.com)

Here's an easy-to-use alternative to curl, HTTPie.Installsudo apt install httpiecurl WayHere's a post to a /api/users API, that sends a basic "person" payload in json:curl http://localhost:3000/api/users -H "Content-Type: application/json" -d '{"name": "Curly"}'Deal with headers. Handle proper json ...

201. Color Picker in Windows 11 (jaketrent.com)

Here's how to access the color picker in Windows 11.Install PowerToysThe tool isn't built in. But it can be had by installing a small collection of utilities, called PowerToys.Open the terminal by going to the Start menu and typing cmd.In the terminal, type the install command to install via the Win...

202. Evaluate Clojure From Neovim (jaketrent.com)

Here's how to evaluate a buffer in neovim in a clojure repl.InstallConjure supports interactive evaluation of several languages from within nvim, including Clojure.Install it with packer:return require('packer').startup(function(use) -- ... use { 'Olical/conjure', -- repl ft = 'clojure' } -- ... end...

203. Connect Conjure to an Existing nREPL Session (jaketrent.com)

Here's how to connect an nvim buffer to an existing nrepl session.nREPLnREPL is a Clojure REPL that is available in a client-server architecture. You might have an nrepl server started somewhere and want to connect your nvim session to it with Conjure.Install ToolsHere using packer, we're putting a ...

204. Mount Network Drive on Linux (jaketrent.com)

Here's how to mount network-available storage (NAS) on a Linux box.Get a ToolIf you mount with CIFS, you will be able to connect to more devices in a more generic way.To enable you to mount with CIFS, you'll need a tool:sudo apt install cifs-utilsFind the NASA filesystem available over the network, ...

205. List All Devices on Local Network with Linux (jaketrent.com)

Here's how to list the IPs of devices on the network using Linux utils.Get ToolGet the tool:sudo apt install arp-scanDetermine Network InterfaceHow are you connected to the network? Run:ifconfigLook for something like eth0, wlan0 or wlp0s20f3, hehe. Copy that interface name into the next step.Scan f...

206. Loop Through Map in Clojure (jaketrent.com)

In Clojure, basic maps are unordered. But we can loop through them. Let's get goin' round the track.(Note: you can order by keys with sorted-map.)For LoopClojure has a for expression. The function signature:(for seq-exprs body-expr)The seq-exprs are to be one or more binding-form pairs (think of a (...

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

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

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

210. 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...
Type to search HN and engineering blog articles
Press Escape to close  |  to navigate  |  Enter to open