The Demise of Google OptimiseA few months ago, Google announced that its free A/B testing service would be shut down at the end of September. Obviously, this wasn't the most popular decision, but there wasn't much end users could do other than migrate to another service, such as...Sep 10, 2023·1 min read
Inverted thinkingI just finished watching a video on how to improve problem-solving by "thinking backwards" which I thought was a rather interesting approach. Inspired by German Mathematician Carl Jacobi, who wrote "invert, always invert", it suggests an alternative ...Jul 20, 2023·2 min read
TypeScript utility types: omit and pickAs is in the name, at the heart of everything TypeScript offers, are types. As you pass around data, having a predictable structure helps not only reduce run-time errors but also improves developer productivity as you have IntelliSense support in you...Jul 20, 2023·1 min read
Searching strings in JavaScriptEveryone loves a good ol' regex, but sometimes it's a bit overkill when you simply want to check for the presence of a basic string inside another. Recently, I learned that JavaScript provides three helpful methods that may remove the need to go for ...Jul 20, 2023·1 min read
TypeScript constructor parameter propertiesFor those with an OOP background, you'll often find yourself instantiating a new object by passing one or more values via the constructor and then setting them as object properties, like so: class User { firstName: string; lastName: string; ...Jul 20, 2023·1 min read
Read-only and optional class properties with TypeScriptLooking into creating a class in TypeScript, I came across two tidbits that struck me as really interesting. The first is the ability to mark a class property as read-only, i.e. once initialised, that property cannot be updated. You can do this by si...Jul 9, 2023·1 min read
Literal types with TypeScriptI've been recently brushing up on my TypeScript courtesy of codewithmosh.com's Ultimate TypeScript Course. While explicit types are a concept taken from Page 1 of the TypeScript handbook, today I discovered that you can also increase the strictness o...Jul 8, 2023·1 min read