Whilst doing some work in a library I maintain, I needed to add in the ability to calculate the hash of an included file for an integrity …
Javascript
Preferring If Statements over Ternary Operators In Javascript
Every so often thought-pieces will go around proclaiming that you are writing code the wrong way and that you should be writing your code …
Select Change Event Not Firing When Using Characters On Keyboard
Here is a nice bug-not-bug to close out in 2019. One of my Trello cards detailed what sounded like an error: When toggling between two …
Learn Javascript First
The front-end space over the last six years or so has really heated up, you could say superheated. As browsers become more powerful, devices …
Are Classes in Javascript Bad?
Staunch functional proponents will fire up at the mere mention of classes or any form of object-oriented programming. These arguments go way …
Getting Typescript 3.7 To Work With Webpack and ts-loader
At the time of writing this post, TypeScript 3.7 is in beta. Eventually, this post will become irrelevant. But, for the moment if you are …
Mocking Default Imports In Jest With TypeScript
If you are writing tests using Jest and you use TypeScript, there is a good chance you have encountered an error along the lines of …
When To Use State Management In Front-end Applications?
As ubiquitous as state management has become in front-end development, it is still a confusing magical black box to most developers. Data …
Default Exports = Bad
Hello humans. In JavaScript, the worlds most loved and internets favourite client-side language, thanks to modern ECMAScript standards, we …