JavaScript
-
-
Conditional rendering tactics for React components
A simple exploration and comparison of two tactics for handling conditionally rendering components in React. -
A Model View Controller pattern for React
Rediscover the benefits of the MVC architecture in the GUI environment and how it can be applied to your React application. Learn the two pillars of MVC in React: (1) Presentation layer with Controller and View React Components and (2) a UI-Agnostic Data Model. -
-
What happens when you extract a function anyway?
Imagine you’ve got this snippet of code: (If this looks scary, try reading the original code from testdouble.js—I’ve made some changes to it here that make it a bit uglier) -
Abusing promises as a locking mechanism
One of my favorite things about Promises in JavaScript is that they have a well-defined and narrow purpose: you ask for data and get a Promise that will give it to you asynchronously. -
Running Node on Raspberry Pi
Last Christmas I received a gift so diabolical it ruined many weekends and kept me up at night. It was a brand new Raspberry Pi Zero. The possibilities were too endless for my finite brain to handle, so I took the only obvious course of action. -
-
-
Open source spotlight: Dependable
Recently, Michael Schoonmaker, Joshua Starkey, and myself got together to brainstorm some improvements we wanted to make to an open source library called Dependable that we had used on a client project.