Code Buckets

Buckets of code

Latest post

Farewell to Microsoft

Happy new year! It looks like 2022 will be the year that I say a fond farewell to .Net and Microsoft technologies generally.  It’s been a 20-year relationship with Microsoft and we’ve both seen changes in each other but our…

Fading text in and out with React

The Task I want to fade text in and out of a React app. I’m populating a series of quotes from an API and I want them to change gracefully. The Demo App The demo is a React application showing…

Helpful Starter Projects for React and Node

Here are some simple starter projects for Node and React I’m using. I’ve got a bit sick of using create-react-app and seeing a mountain of security vulnerabilities before I even start. The number of errors seems to range from 5…

Windows Subsystem for Linux Blue Screen of Death

Quick word of warning. A few days ago, I installed Windows Subsystem for Linux on my Windows 10 box. I was working on a React application that was written originally on a non-windows environment. The plan was to run the…

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…

Why I’m using Digital Ocean

I’ve been writing bits and pieces of code and side projects for years now – it’s the fun side to professional development. Recently I’ve tidied up some of the projects and got them published to live where they can roam…

Buddhist Texts API: Dhammapada

A while ago I was looking for an API which provided Buddhists Texts and I couldn’t finda good one – so I’ve created one myself and published it. I’ve started with the Dhammapada which is pretty much the most well-known…