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

391. React OneOf vs. OneOfType (jaketrent.com)

Here's the difference between React PropTypes.oneOf and PropTypes.oneOfType.Why PropTypesPropTypes are a way for you to indicate how you want your React Components used. By defining PropTypes, React will warn developers when they're passing the wrong props to your component, preventing bugs and givi...

392. Result Type in Flow (jaketrent.com)

Here's an example of a Result type in Flow.Updated 27 Oct 2017 per Harish's suggestion for using exact object types.Result TypeIn functional programming, a Result type can be useful for representing things that might fail. It becomes a common interface that you can return from these potentially-fail...

393. Not Done in a Corner (jaketrent.com)

Solo coding can be done so-as not to be "in a corner" and produce high quality code.This thing was not done in a cornerActs 26:26How We Describe ThingsHow we describe things exposes what we think about them. Often I have heard solo coding as "in a corner", as "coming out of a dark room after hours o...

394. Don't Publish .bablerc to Npm (jaketrent.com)

Don't publish your .babelrc file to npm if you have pre-built your package.Publish .babelrc if Compiling Still RequiredIt's possible that you intend for others to compile the code you publish to npm. You'd do this if you published your source to npm without precompiling but are using features not in...

395. Flowtype Props Passed to Children in React (jaketrent.com)

Here's how to type props for a child component that has props cloned onto it.This is for you, @nguyenmanh1507! :)React Clone Props onto ChildrenIn React, you can send props to children. This is a way for a parent component to provide a child component with data it didn't already have.Many times this...

396. Flowtype Analyzes All Code Paths (jaketrent.com)

Flowtype gives type errors to help you consider all function code paths.Other Potential PathsOften we are only paying attention to the happy path that we're developing in our code. This may lead to bugs later on that we hadn't anticipated from the other code paths that exists in different branches o...

397. Remove App from Cmd-Tab Menu (jaketrent.com)

Here's a way to hide an app from the application switcher UI in MacOS.App SwitcherThe application switcher UI is what shows up when you press Cmd-Tab in MacOS. It allows easy switching between apps.If, for some reason, you don't want your app to show up there, you can do that with a small change to ...

398. React Error Boundaries in Event Handlers (jaketrent.com)

How to make React error boundaries work in event handlers.React Error BoundariesIn React 16 there is a new feature called error boundaries.This feature allows you to wrap components in React components that act as try-catch blocks. These boundary components have a new lifecycle method implemented ca...

399. Family Can Enable Creativity (jaketrent.com)

My family makes my creativity possible and enables it.InspiringI have been creating things since I was a small child. I believe there's an innate desire within us as humans to create.More than this nature, however, I was blessed with the nuture of parents who really instilled confidence and support ...

400. The Important Part of Learning is Outcomes (jaketrent.com)

It matters more what you do with your learning than what you learn.Why Learn?Why do you learn new things? Why do you approach a new programming language? Why do you want to learn?We all feel like growing. And growing, in itself, brings its own kind of satisfaction.I hear "What should I learn?" or "H...

401. Reading Needed to Code (jaketrent.com)

Today, reading prose is important to getting the job done in code.The Prebaked WorldHow much software has been created in today's coding environment? A lot! There is a lot of existing art, and we build upon it to do bigger and better things.We make new, interesting combinations of things. Our job be...

402. Deploy Lerna Packages to Heroku (jaketrent.com)

A way to deploy multiple packages in Lerna monorepo to Heroku.Lerna PackagesLerna is a project that allows you to manage multiple JavaScript projects in a a single monorepo.The packages are stored in a packages/ directory. For our purposes, let's say that we have this directory structure with 2 proj...

403. Defaulting to Functional React Components (jaketrent.com)

Here are a few reasons why I prefer and default to stateless functional React components.Two FlavorsThere are two syntaxes available to write your React components. One, class style:import React from 'react' class MyComponent extends React.Component { render() { return My component! } }The other, fu...

404. Sharing Hope to Create a Future Together (jaketrent.com)

When we have real hope in a better future, we are grateful for every attempt others make to help us get there.Real HopeHope is a quiet faith. It’s an assurance of things not seen. It is graceful.We believe that the future holds improvement. This comes quietly. This doesn’t come while shouting, argui...

405. Naming Related Components in React (jaketrent.com)

This is an example of how I like to name related subcomponents in React.Meaning of RelatedRelated components are those that are used together to perform some greater task. They work together.A related component might define its relationship as a subcomponent, used as a child of a parent component.To...

406. Making is More Important Than How You Make It (jaketrent.com)

We get hung up on how we make something when we could just be making it.Creations ShippedWhat's really important is what you shipped. How you accomplished this feat is influential in getting the thing shipped, sure. But the "how" can also get in the way.When taught silver-smithing by his mom, Richar...

407. Render Current Route Active Links on the Server (jaketrent.com)

How to render the current route's active links on the server.Client-side Active LinksOn the client, the tool you might usually reach for is the obvious one: window.location. If my current location matches the link's intended location, I can style an anchor tag as active route.This might look like:co...

408. Separating React Components Into Modules (jaketrent.com)

Reasons for separating a React component into its own module.It's an ArtSo much in decision-making depends on context. Separating modules, just like painting a picture, is an art because there's no single best way to accomplish good modularization. Here are some of the things that I think about -- s...

409. Use Slack Channels to Broadcast (jaketrent.com)

Use a slack #channel, not @channel, to broadcast.Who are you talking to?Who do you want to tell your great thing to? Who are you trying to reach?This question is answered by the #channel that you are in. If you are in the #engineering channel and type something and send it, everyone in that channel ...

410. Modern Frontend Dev: Language Advances (jaketrent.com)

Advancements in JavaScript further the frontend craft. Here are some advancements that I believe are important to us today.Rapid Spec ImprovementsHasn't it felt like there have been a lot of upgrades to JavaScript itself in recent years? I feel like the TC39 committee, responsible for evolving the l...

411. Modern Frontend Dev: Browser Capabilities (jaketrent.com)

Modern frontend dev is enabled by growing browser capabilities. There are many exciting things happening in browserland. Here are a few that I care about.Offline SupportThe new approach to handling offline support, embodied in service workers, is so much better than what came before. It's now like y...

412. Modern Frontend Dev: Writing JavaScript (jaketrent.com)

What writing JavaScript looks like for a modern web developer.I'll assume, for a moment that I'm that modern web developer. Hopefully my profile is modern and webby enough. We'll use my own experiences as a hopefully informative prototype of what writing JS in the modern web can look like.Bet on Jav...

413. Modern Frontend Dev: User Expectations (jaketrent.com)

Increased user expectations are driving what modern frontend dev entails.Here are a few things that the modern frontend web developer must concern himself with in order to make the applications that his users desire.AnimationsAnimations are now common place. Animations help provide polish for your p...

414. Make it Work (jaketrent.com)

The first and most important step is to make it work.Works or BustWhat kind of a product do you have if it simply doesn't work? You don't. You really have nothing. It doesn't work.If you have something that works, there is at least potential value being delivered. You can test it. You can get feedba...

415. Next.js getInitialProps in All Components (jaketrent.com)

Make getInitialProps available to child components in Next.jsWhat is getInitialPropsNext.js adds a great little function to top-level (page) components. It gives access to a number of properties, such as the request and response objects and url information such as the pathname. For the full list, se...

416. Open Source for Inspiration (jaketrent.com)

Some projects are open-sourced to provide inspiration.Open by DefaultRecently I heard a talk where the speaker encouraged us to, when we make something, ask ourselves "could this be open source?". It was a good talk, and it's a good question.I think we can ask a better question: Why shouldn't this b...

417. Controlling pointer-events (jaketrent.com)

You can control what elements can be the target of mouse events with CSS.Disable Pointer-Eventspointer-events is the CSS attribute that determines whether an element can be the target of a mouse event. By default, DOM elements are clickable and register these mouse events.To disallow the mouse event...

418. Get ref for Glamorous Component (jaketrent.com)

Accessing a glamorous component's ref is a bit different.Normal ref AccessIn React, the ref is an attribute on a component that allows you to access the actual DOM element that the component is bound to. This is important for anything that requires direct DOM access, such as focus control.The ref pr...

419. Single Glamor Instance (jaketrent.com)

It's important to have a single glamor instance on the page.The RuleThe rule: Have one instance of glamor on the page at a time.How important is this rule? Very important. You can have a couple issues if you have more than one instance of glamor on the page.In BrowserIn the browser, I've seen this f...

420. Continuously Not Delivering (jaketrent.com)

You can shy away and do nothing or ship something satisfying.Stuck MyselfI've been stuck -- and for no other reason than myself. Sometimes we get in our own way. We shy away from the challenge. We have a hard time moving ourselves to action.We can make excuses to assuage our ineptitude in the moment...
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open