Generating tickets for tambola — or bingo, or housie, or whatever Recently, I’ve been fiddling with clojure and having some fun. It has some pretty powerful abstractions that allow neatly expressing ideas…
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.
Unit testing node applications with TypeScript — using mocha and chai TypeScript has gotten so much better in the last year, and so many projects have adopted it. But how do you write your tests in TypeScript? TypeScript has gotten so much better in the last year, and so many new applications and projects are built on top its awesomeness. But how do you write your te
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…
6 things that I’ll be doing in the forthcoming year — and you could too This is my last post of the year. And I’m making a wish list of sorts. A new year resolution, if I may. Staying true to the theme of the…
Don’t be a jerk: How not to alienate people abruptly, and risk losing everything they have to offer Here’s a little secret: everybody has something to offer.
Write tests for TypeScript projects with mocha and chai — in TypeScript! UPDATE: There’s a newer version of this post, with more details and solutions. It’s advisable to head there instead. The contents of this…