Filter by source
All sources GoCardless 6194 PubNub: 2474 Vercel 1665 Ariya Hidayat 849 Serverless 849 Jake Trent 816 Drew DeVault 784 Nic Raboy 734 SitePoint 635 Neon 504 Supabase 435 Shopify 432 Soundcloud 409 Databricks 396 Real Python 396 Johannes Brodwall 378 Jeremy Kun 327 Laravel 297 PostHog 294 Twilio 260 Graham King 257 MapTiler 257 Carlos Becker 252 Scott Johnson 250 Cloudflare 245 Lea Verou 244 Matt Aimonetti 231 Atomic Object 219 Andrew Bancroft 214 Nvidia 212 Stanko Tadić 189 Lerner Consulting 188 Stack Overflow 183 Freek Van der Herten 182 The Daily WTF 169 Raymond Chen 165 Trivago 159 GitHub Old 155 Discord 140 Dan Luu 137 WyeWorks 134 Swizec Teller 133 Una Kravets 132 Auth0 130 Codrops 126 OCTO Technology 123 Reginald Braithwaite 121 Android 119 Hostinger 119 Jane Street 119 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 97 dbt Labs 95 Ilija Eftimov 94 Marek Majkowski 94 Docker 87 .NET 86 Finn.no 86 Nick Desaulniers 86 Hayden James 85 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 70 Ebay 68 Mykhailo Kozik 68 Axel Rauschmayer 64 Evil Martians 64 Mozilla Release 64 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 Gleb Bahmutov 42 Josh Sherman 42 Stripe 42 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 IPFS 30 Lazarus Lazaridis 30 Pamela Fox 30 Evan Miller 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 Blender 16 Filippo Valsorda 16 Medium 16 Postmark 16 RocksDB 16 Stack Abuse 16 Yegor Bugayenko 16 Zach Holman 16 Amit Merchant 15 Bigcommerce 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 →

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

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

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

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

635. Ember Dynamic Classes (jaketrent.com)

In Ember, your state is separated from the UI inside models. But, often you want the state of your models to be represented visually in the UI via dynamic class names. Make it happen with Ember.Views.Use an Ember.ViewA view will function as the translation layer between the state of your models and ...

636. Style File Input (jaketrent.com)

File input fields are notoriously painful to style. Here are a few quick tips to that will save you some dead ends.The Problem with File InputsFile inputs are inconsistent to start with. They differ even in their native form across all browsers. They also have internal elements that are not individu...

637. So Good They Can't Ignore You (jaketrent.com)

"So Good They Can't Ignore You" is written by Cal Newport. He rejects the idea of following your passion in order to find the work you love. Instead, he suggests the accumulation of career capital.What follows are the main sections or rules of the book with a few of my takeaways each. The man is obv...

638. Namespacing Angular Controller Attributes (jaketrent.com)

Usually attributes of your Angular controllers are not namespaced. But you can namespace them. But you might not want to.Angular Controllers Usually Attach Attributes to ScopeUsually attributes in an Angular controller, such as functions and variables, are attached to the $scope object. That looks l...

639. Access Model in Ember View (jaketrent.com)

Ember Views are used for event handling and creating reusable web components. To make them useful and interesting, model data needs to make it into and out of the view. Here is an example of how this works.Define Your ViewIn our example, I'm making a simple dice rolling game. I want to use a view to...

640. Behavior of CoffeeScript Fat Arrow (jaketrent.com)

In CoffeeScript there are two different types of arrows for defining functions: arrow (->) and fat arrow or hash rocket (=>). Usually, you'll use the regular arrow. But sometimes you'll want the special behavior of the fat arrow.Function BindingIn JavaScript, the keyword this within a function refer...

641. When to Use Curlies in Angular Directives (jaketrent.com)

Angularjs has some sweet built-in directives. Sometimes it can be confusing when to use the curly braces around expressions in directive attributes and when not to. Here are a couple rules.CurliesBy "curlies", I mean curly braces. The difference of when to use or not use them looks like the followin...

642. Remove Mobile Safari Click Delay (jaketrent.com)

Did you know that Mobile Safari and other mobile browsers are delaying your click events? If you've been testing your mobile site, and it feels sluggish in Mobile Safari, this could be one of the reasons. Disable the click delay and rejoice at a bit more snappy response.Sandbagging?Why would a brows...

643. ngStyle Background (jaketrent.com)

ngStyle is the directive used to set inline style attributes with AngularJs. Most of the time, it's straightforward to use. background css attributes can be just slightly trickier.ngStyle ObjectsThe ngStyle directive requires an object for input. The object key is the css attribute name. The resulta...

644. Mongoose Population (jaketrent.com)

Mongoose is an object modeler for MongoDb. It has a particularly great feature, called population. Population allows you to include other objects in a specified object. It makes the process a lot easier and more automatic.Document DesignDocument databases provide a lot of flexibility in how data is ...

645. Learn to Procrastinate (jaketrent.com)

When making software, sometimes we want everything we can imagine at once. We want the software to be perfect -- then we'll ship it. Learn to procrastintate. You might ship more, and you might like the the eventual outcome better.Worthless SoftwareSoftware that sits inside of your git repo, unreleas...

646. CSS Vertical Height of Text (jaketrent.com)

Setting text elements on a page to be a specific height is usually straight forward. Here are the specs for a couple textual situations you'll encounter.Note: Experiments were done in Chrome 27, but this should be pretty consistent over browsersText in a DivText is likely most common just plastered ...

647. Ember Parent Templates (jaketrent.com)

Ember's convention of template hierarchy is very specific. Learn it once, and you'll know it every time.Note: Code examples use Emblem templates and CoffeeScript. Vanilla Handlebars and JavaScript would work just as well.OutletsEmber templates make use of a special helper called outlet. You can have...

648. Match Ember and Handlebars Versions (jaketrent.com)

Ember is very specific about what version of Handlebars it requires. This is probably good, but it's also a pain to work with as different versions of the two libraries are released independently. There are a few good tools to help us out.Released IndependentlyIn a prime example, recently there was ...

649. Precompile Ember Templates (jaketrent.com)

Ember makes use of the wonderful Handlebars templates. These templates, in order to be performant, must be precompiled. Based on the Ember docs, it's not abundantly clear how this is to happen. Here's a solution that works well.Ember Docs for PrecompilationEvery official Ember doc will put templates...

650. Test setTimeout with Jasmine (jaketrent.com)

Code that utilizes setTimeout or setInterval becomes asynchronous. Jasmine has some nice helpers to make your test synchronous again.Code Using setTimeoutAny Javascript code that wants to delay certain actions or give intervals between actions will use setTimeout or setInterval respectively. There a...

651. Deploy Yeoman App on Heroku (jaketrent.com)

Yeoman is great developer tool that will help you generate a project format that is easy to get up and running quickly. Out of the box, Yeoman only generates static sites. But, with a few small tweaks, you can get it running on an app server, Nodejs, and up on Heroku.New Project With YeomanTo instal...

652. LiveReload for NodeJs (jaketrent.com)

LiveReload is a wonderful tool/strategy for being able to develop websites more quickly. You can make a change and see it immediately shown in the browser without requiring you to manually refresh. To do this in NodeJs with Express, you'll need just a few packages.LiveReload ExpressIf you're doing a...

653. Access NodeJs App on Xip.io (jaketrent.com)

Xip.io is a DNS wildcard domain that was initially created for use on Ruby projects. But its application is desirable across platforms. Recently, I wanted to use Xip.io on a NodeJs project. It was easy to make happen.Update: "Proxying"After having a handful of problems with these home-grown proxies,...

654. Make Jsonp Requests with AngularJs (jaketrent.com)

There are a couple ways to make cross domain requests from a client browser. One method is called Jsonp or Json with padding. The AngularJs library makes this really simple.Web Server SupportFirst of all, your Jsonp request will be worth nothing if the server you're requesting data from does not sup...

655. Have More Fun (jaketrent.com)

You enjoy your work more when you're having fun, right? I wouuld think that much would be obvious to us all. And yet, we need reminded now and again what really makes us tick. Whether our endeavor is serious or purely for entertainment; Whether the cause means a lot to us or we are just trying to pa...

656. Https Redirect for Node on Heroku (jaketrent.com)

When your app requires users to be using the https protocol to make requests and get responses, it's helpful to have an automatic redirect so the user is always in the right place. Here's how to do that for a Node Express app on Heroku.Secure Express RequestsThe Express request object has a bunch of...

657. Serve Json from Sinatra (jaketrent.com)

By default, Sinatra knows how to serve up a rendered html page. With a slight tweak, we can make it spit out Json too!Data Format of the WebJson is my favorite data format for web applications. Really, who wouldn't want their webservice to expose Json? It's mucho useful.First, add a line to the Gemf...

658. Pass Values From the Page to AngularJs (jaketrent.com)

There are simple mechanisms for passing data from your web page to AngularJs. One directive is called ngInit. You may well need it.The Use CasesThe use cases don't make a ton of sense without a concrete example. There are several ways to implement even the most simple example. If the solution doesn'...

659. AngularJs Find Element in Context (jaketrent.com)

Finding an element in context means that I can select a node from the dom within a certain range -- specifically either a node or any of its children nodes. Is there an "Angular way" to do this?Angular's Element() APIAngular provides jqLite for doing basic CSS selections. As far as I can tell, it do...

660. Serve CoffeeScript from Sinatra (jaketrent.com)

Sinatra is nice because it's super lightweight. This will allow you to make it do exactly what you want, nothing more. This is the opposite of Ruby on Rail's convention. Likewise, it takes just a bit more configuration to make Sinatra serve CoffeeScript as compared to Rails.Sinatra and CoffeeScriptS...
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open