Code Buckets

Buckets of code

Month: November 2021

Is there any reason not to use TypeScript?

I’ve written a lot of code for side projects and for this blog, and a lot of it has been JavaScript. I’m really wondering now why I didn’t write it all in TypeScript instead. It’s easy to learn, improves your…

Getting Random Letters with the Correct Frequency Using TypeScript

The Task It’s pretty easy to get a random letter using TypeScript. Using lodash and returning upper case letters, it would be You don’t even need to use lodash – it’s a convenience. The problem with this code is that…

Changing configuration when deploying to different environments: comparing Node and React

I’m getting into Node a bit more and I wanted to look at how you would swap config settings when deploying into different test and production environments. In this post I’m going to compare Node to React – not so…

Infinite Buddha Quotes

Just moving on from the Pali Canon API that I published recently – I’ve published a web app which consumes the API. It randomly displays a quote from the Buddha, fades it out and displays the next with a suitably…