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 Lerner Consulting 70 .NET 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 →

601. Destroy Duplicate Tests (jaketrent.com)

As soon as we begin to write a test for our code, it is natural for us to think that we are doing a good thing, and often, we are. Yet, I believe there are times that we’re writing tests when we’re hurting more than helping — and, of course, this is not on purpose. To clarify, I’m an advocate for te...

602. Expose HTTP Headers in CORS (jaketrent.com)

For APIs, it seems more and more data is making its way into the HTTP headers. Recently, whilst adding a Link header, for paging data, into the HTTP response, I realized that my browser code couldn't see it. Who was the culprit? CORS, of course.Headers in BrowserIt was just another day, and I was de...

603. Send Props to Children in React (jaketrent.com)

In React, you're always making components. Sometimes components are standalone. Other times, you'll have components that can nest children components. Sometimes you'll want to send properties to the children components from the parent as often as a doting parent wants to send packages to a child mis...

604. Set State in Callbacks in React (jaketrent.com)

In React, you can setup components that fetch their own data and set their own state with that data. Because of the async nature of data fetching, you’ll have to make sure to keep things cleaned up to avoid the error of trying to set state in an unmounted component.Updated for React 0.13. See belowR...

605. Broccoli Ember Emblem (jaketrent.com)

Make broccoli compile your emblem templates so they're ready for your ember app.The LibrariesBroccoli builds your assets quickly. It makes heavy use of caching so it only has to rebuild affected subtrees when files change. Emblem is a significant whitespace version of Handlebars templates, similar i...

606. Bower Resolutions (jaketrent.com)

When you specify dependencies for you app via Bower, some of the packages might rely on different versions of the same library. You will have to resolve what version of libraries your app actually wants. In other words, you break the tie. But you don't want to break it every time, so save your choic...

607. Link to Broccoli Assets on a Webpage (jaketrent.com)

Broccoli.js is good at building assets. But now that they're built, how does one use them on a webpage?Broccoli ServeBroccoli has a great feature of having assets cached at every step in a list of transforms. This makes it quite fast. It can selectively reprocess only the subset of assets that have ...

608. Detecting Window Closing in Ember (jaketrent.com)

In a long-running app such as you might build in Ember, it can be useful to detect when the window is closing. This is easily detected with JavaScript, and there are easy places to put the code in your Ember app.beforeunloadThe window event that you want to listen for is beforeunload. You might bind...

609. Convert App From EmberFire to Fireplace (jaketrent.com)

There are a few changes required to convert your Ember app from using EmberFire to Fireplace. Here are a few that I found to be required. There are probably more.Your OptionsEmberFire and Fireplace both provide an API for you to integrate your Ember app with a Firebase backend. You don't need either...

610. Testing Express Validator (jaketrent.com)

Express-validator is a middleware for Express on Node.js that can help you validate user input. It's a lovely library. Here's a pattern for testing code that uses it.InstallTo get express-validator in your project, install with npm:npm install express-validator --savePlug in the MiddlewareTo use the...

611. Permit Array in Rails Strong Parameters (jaketrent.com)

Rails 4 introduced the pattern of strong parameters at the controller layer. As a best practice, you will explicitly list the parameters that an endpoint should accept in payloads. Arrays are specified just slightly different.Strong ParametersYou don't want those blackhats to update any field they w...

612. Grunt-init Exercism.io (jaketrent.com)

Exercism.io has a great set of JavaScript exercises. They could be made better by a better test setup and runner. I've created a small grunt-init template to help in that setup.Exercism.ioFor those unfamiliar, Excercism.io is a great tool that helps coders and potential coders learn and expand their...

613. Add Zerigo DNS to Heroku (jaketrent.com)

Once upon a time, I could setup DNS super easily on Heroku using their Zerigo DNS addon. Lately, I tried again using the same pattern and failed. Here's an updated step-by-step guide.Back in the DayIt used to be that all you had to do was setup the nameservers on your domain registrar, add the Zerig...

614. Define Methods Dynamically in Ruby (jaketrent.com)

In Ruby, it's common to see new methods defined dynamically or on the fly for your class. And who doesn't want to have a piece of that metaprogramming?An ExampleFor example, I just finished an exercism code exercise where I felt like there was a fair bit of code duplication. I had a bunch of conveni...

615. Call Dynamic Method in Ruby (jaketrent.com)

I love Ruby's syntax for method calls. The syntax for calling dynamic methods is pretty nice, and it's easily mastered.send methodThe send method is one of the best and most basic ways to call a method dynamically on your object. Let's say we have an object with multiple methods like this:class Fezz...

616. Exercism Review (jaketrent.com)

Exercism.io is a fantastic site and tool that provides a wealth of daily code exercises. If you want to learn to be better in a language, it's a great resource to do exercises and receive feedback.OriginExercism.io was introduced to me by Franklin Webber of gSchool and JumpStart Labs fame. He and hi...

617. Save a Gem to Gemfile from Terminal (jaketrent.com)

Have you ever wished you could save a gem to your Gemfile straight from the command line? I wish Rubygems had this built in, but it's easy to add. After all, there's a gem for that.From npmComing from Node/Npm previous to Ruby/Rubygems, I wished I could do something like this:npm install express --s...

618. Debug Ruby and Rails (jaketrent.com)

Interactive debugging can sometimes be faster and more effective in helping you code than a puts statement. It's easy to get interactive debugging in Ruby or on Rails with the help of a nice gem.No IDE RequiredThere are Ruby IDEs that provide interactive debugging capabilities. My favorite is RubyMi...

619. Change Page Title in Angular Route (jaketrent.com)

When you change routes in Angular, the page title doesn't change automatically, but this can be done rather simply.Servers and ClientsClient-side routers are pretty awesome. A new url is pushed into the browser's history to represent the particular resource that pure client code has produced and dis...

620. Use D3 rangeBands (jaketrent.com)

When building a chart such as a bar chart in d3, you'll want an evenly divided space on your x axis. You could divide the space up with your own manual calculations, accounting for space available, bar width, and inner and outer padding. Or, you could have d3 do the calculation for you via a rangeBa...

621. Start Review (jaketrent.com)

Starting tends to be one of the biggest hurdles that we must jump in order to find out what awesome we really have inside of us and let it shine. In the book Start by Jon Acuff, he gives great motivation and tactical steps for starting to find our awesome. It's a hilarious, inspiring, and practical ...

622. Rotate Gauge Needle in D3 (jaketrent.com)

If you want to make a gauge chart in S3, you'll need a needle on your gauge. It's not hard to draw a triangle, but here's the extra work to rotate it.The Gauge ChartI'm not sure what you call this kind of chart, but I call it a gauge. It pretty much looks like a speedometer or a pressure gauge. I'm ...

623. Import Erb Into Karma (jaketrent.com)

Rails asset pipeline allows you to use erb helpers in your CoffeeScript. You'll still need to bring get these files into Karma runner. It's really easy. You just need to get to know your Karma config options.erb in JavaScriptsWhy in the world would you want to use erb helpers inside your script file...

624. JavaScript Mixins (jaketrent.com)

JavaScript makes mixins inherently easy. Mixins are a native feature of the language without calling it that. Here are a few methods for making this happen.Attach a PropertyYou can attach a property to a Javascript object at any time. You don't need to monkey patch it. It doesn't need to be packaged...

625. How to Create a Bower Package (jaketrent.com)

Bower is a client-side or browser package manager. It will handle your 3rd-party packages that are registered with the service. To make it more useful, you can package up some of your own code and create a component to install with Bower.Prepare your PackageTo prepare your code to be a Bower package...

626. Test Angular Directive With Isolate Scope (jaketrent.com)

Directives with isolate scope do not inherit their scope from their parent. Thus, the pattern to test them is slightly different.When testing a directive, you'll often want to setup some fixture element to attach your directive to. This will act as the DOM that you will compile with scope. At that p...

627. Spies with Sinon and Chai (jaketrent.com)

Spies will help you verify calls to methods without actually calling them. Sinon is a library that provides spies. Chai will provide assertions appropriate to spying.Install DependenciesYou'll need 3 dependencies in dev mode for running your tests:npm install sinon chai sinon-chai --save-devNow make...

628. Disable ngClick (jaketrent.com)

Angular's ngClicks can be attached to anything. This makes it easy to add interactivity to elements on the DOM. Your program might require that these click callbacks be disabled at certain points, such as during form processing. ngClick doesn't have a toggle built in. Let's build one that might help...

629. Preload Route Data in Angular (jaketrent.com)

It's sometimes useful to be able to preload or resolve data previous to an Angular view being displayed. Such was the case recently for our current user object. It simplified a lot of things in the app to have the guarantee of a loaded current user previous to displaying pages. The Angular router ha...

630. How MarkLogic Made Me a Better Programmer (jaketrent.com)

I started programming on the MarkLogic platform in 2010. It was a very new experience for me. I don't program in it these days, but I still think back on the experiences I had with MarkLogic and in general believe that they made me a better programmer. Here's how.First Functional LanguageMarkLogic i...
Type to search HN and engineering blog articles
Press Escape to close  |  to navigate  |  Enter to open