Using TypeScript to write compile-time-safe enumeration type handlers Well written types enforce compile-time guarantees in your code that needs no tests to guarantee functional correctness. At the very least…
4 simple things that will help you handle enumeration types better in a rapidly evolving… Enums are compile-time constants. They don’t respond well to change — they weren’t meant to. I have a few recommendations to make it…
What you risk when using Number() to parse an integer from a string in TypeScript Using Number constructor function to parse a number from an input in TypeScript entails a couple of risks. It’s better to be aware of them.
Expanding upon the Single Responsibility Principle (Part 2) The Single Responsibility Principle, sometimes referred to as SRP, is the first of the five SOLID principles. In our last post we…
Expanding upon the Single Responsibility Principle (Part 1) Almost every techie I come across who has worked with writing object oriented code, seems to be proud that they write SOLID code. Not…
Stop breaking your head — Refactor your cycle (app) into replaceable, reusable spare parts now In a previous post, we were introduced to the Recall app that was built with Cycle.js. A couple of people were interested to know how to…