All Posts

Article Roundup - September 14, 2018

Strategies for implementing user authentication in serverless applications Authentication should always involve some deep thinking, you want to get it right the first time. This article runs through some possibilities for a serverless application. It focuses mostly on AWS, but the concepts can be applied elsewhere. Hacktoberfest 2018 - DigitalOcean Hacktoberfest, an event sponsored by DigitalOcean, GitHub, and Twilio, starts October 1st and runs through the end of the month. The event promotes contributing to open source software.

Article Roundup - September 7, 2018

Using the React DevTools Profiler to Diagnose React App Performance Issues The React DevTools received an update recently that added a new Profiler tab. This tool can help you find your performance issues in React. This article goes through how Netlify was able to use it to find a long-standing performance issue on their site. Firefox Public Data Report Firefox has released public data about usage. It’s something they haven’t done before and kind of interesting to look at.

Article Roundup - August 31, 2018

Serverless Best Practices – Paul Johnston – Medium Serverless architecture has been around for a bit now so it’s important to know the best practices. You may read through this and think “doesn’t all this just make it harder to manage serverless architectures?”. This is why automation is so important and why a serverless architecture may not be the best solution for everything. Making sense of MVP (Minimum Viable Product) – and why I prefer Earliest Testable/Usable/Lovable

Article Roundup - August 24, 2018

Setting up constants via proxies This is not a long article, but it is a great example of how you can use the Proxy class in JS. It also gives you JS enums. JavaScript engine fundamentals: optimizing prototypes Understanding how the various JavaScript engines work can help you write better code and is full of good compiler and data structures info. This article goes into how prototypes are handled in JS engines.

Article Roundup - August 17, 2018

Removing Babel’s Stage Presets · Babel Babel has been making a lot of changes recently with v7. One of the newer changes is removing the ES stage presets i.e. preset-stage-0…preset-stage-3. There are multiple reasons for it but it seems like this will ultimately be a great help to the maintainers and the developers that use the plugins for different proposed ES features. We’re under attack! 23 Node.js security best practices

Server-Sent Events With Node

Server-Sent Events (SSEs) allow one-way communication from the server to the client. They can be very useful for things like notifications or activity feeds. I’ve recently used them in a project to display output from a background process in the browser. In the browser, you connect to the server using the EventSource interface and just add event listeners. It is really very easy. const sseSource = new EventSource('/event-stream'); sseSource.addEventListener('message', (e) => { const messageData = e.

Article Roundup - August 10, 2018

How we scaled nginx and saved the world 54 years every day Cloudflare handles a large chunk of internet traffic between DNS and CDN features. Cloudflare makes use of nginx but doesn’t fit nginx’s primary use case. A new feature was in upstream nginx that looked like it could provide a significant performance boost, but instead, it had minimal impact for Cloudflare. When they dug deeper they were able to make small changes that provided a significant boost.

Article Roundup - August 3, 2018

Logging Activity With The Web Beacon API Sometimes your app has an error that keeps happening for the user, but you can’t figure out what is wrong. You know where the problem happens, but not what goes wrong and you can’t get the information you need from your user. Maybe that is the time to use the Web Beacon API, it’s supported by most browsers and lets you fire off a request and not wait for a reply.

Article Roundup - Week of July 22, 2018

Here’s the final nail in the coffin of open plan offices This research may “put the final nail in the coffin” for open office plans, but they’re going to be around for decades to come. Having different spaces for different purposes does help. I have recent experience with that. But without hard and fast rules around phone etiquette and noise buffers those “zones” count for little. A one size fits all database doesn’t fit anyone

Article Roundup - Week of July 15, 2018

VS Code Can Do That? I’m a big fan of VS Code. This site showcases a lot of features and extensions that you may not know about. Using API Gateways to Facilitate Your Transition from Monolith to Microservices Transitioning a monolithic application into a collection of services is quite the challenge. One often overlooked tool to help with that migration is an API Gateway. This article goes through some of the different ways to transition things and how a gateway can help.