Recently whilst working on my Aurelia 2 book, for the example application where you checkout I needed to add in the ability to provide a …
Javascript
I Used To Hate Using Reduce In Javascript, And Now I Can’t Stop
I used to be vehemently against using `reduce` in Javascript. It wasn't because I thought there was a better way, I actually think the …
How To Develop A Seedable Dice Roll/Number Guess In JavaScript
Recently whilst working on some blockchain specific code, I needed to write a random number generator to simulate generating a range of …
How To Get The Hash of A File In Node.js
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 …
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 …