Dale Jefferson

Dale Jefferson

Father, Husband, Classical Liberal, Software Developer

The Most Convoluted JavaScript Fizz Buzz Solution

By Dale Jefferson. Published

Finding the correct level of decomposition is sometimes challenging. In this article, I will take decomposition to the extreme creating a wildly convoluted Fizz Buzz solution and share my feelings on the correct level of decomposition.

JavaScript Named Parameters

By Dale Jefferson. Published

I find JavaScript’s lack of named parameters frustrating. In this article, I will show you how you can get the same effect and as a bonus, show you how to achieve default values.

JavaScript Async/Await Promise All Array Destructuring

By Dale Jefferson. Published

I think you will agree with me when I say working with asynchronous code is an important part of modern app development. Using new JavaScript syntax you can drastically improve the readability and performance of your code. In this article, I will show you how to use Promise.all() along with array destructuring.

How to save exact npm package versions

By Dale Jefferson. Published

I’ve recently started using exact versions in my package.json. This allows me to have more control over my versions and with tools like Renovate this is easier than ever.

JavaScript ES8 Object.entries/values

By Dale Jefferson. Published

JavaScript is advancing at a rapid pace. In this article, I will give a brief overview of the new Object static methods. ES8 (a.k.a 2017) now has Object.values and Object.entries to accompany Object.keys.

Understanding Redux

By Dale Jefferson. Published

After using Redux on a handful of large applications, this is my understanding of how it should be used.

Redux reimplemented in 12 lines of code

By Dale Jefferson. Published

I like to reimplement libraries I use, this allows me to better understand how they work, below is my minimal implementation of Redux.

Class properties with React

By Dale Jefferson. Published

Dealing with this binding in JavaScript can be a real pain. In this article, I will show you three ways to avoid binding issues. Class Properties is the new JavaScript syntax for creating handler functions that have the correct this binding.

Async/Await with React Lifecycle methods

By Dale Jefferson. Published

If you are like me you will also end up doing a lot of asynchronous work in componentWillMount/componentDidMount. This article will show you how to use Async/Await with React’s Lifecycle events. React’s lifecycle methods can return any value, including a promise.

Stateless components in React Native

By Dale Jefferson. Published

With the arrival of React 0.14 into React Native, we now have a third way of creating components in React Native, stateless components.