Archive for the ‘composition’ Category

Quick Tip: What Are Factory Functions in JavaScript

Posted on: No Comments
You can't get far as a JavaScript programmer without learning about functions and objects, and when used together, they are the building blocks we need to get started with a powerful object paradigm called composition. Today we'll look at some idiomati...

Function Composition: Building Blocks for Maintainable Code

Posted on: No Comments
One of the advantages of thinking about JavaScript in a functional way is the ability to build complex functionality using small, easy to understand individual functions. But sometimes that involves looking at a problem backwards instead of forwards in...

Function Composition: Building Blocks for Maintainable Code

Posted on: No Comments
One of the advantages of thinking about JavaScript in a functional way is the ability to build complex functionality using small, easy to understand individual functions. But sometimes that involves looking at a problem backwards instead of forwards in...

Higher Order Components: A React Application Design Pattern

Posted on: No Comments
In this article we will discuss how to use Higher Order Components to keep your React applications tidy, well structured and easy to maintain. We’ll discuss how pure functions keep code clean and how these same principles can be applied to React comp...

Object-Oriented JavaScript — A Deep Dive into ES6 Classes

Posted on: No Comments
Often we need to represent an idea or concept in our programs—maybe a car engine, a computer file, a router, or a temperature reading. Representing these concepts directly in code comes in two parts: data to represent the state and functions to repre...