Building strongly typed vectors and matrices in TypeScript Recently, I came across a problem where I had to generate primitive Pythagorean triples. Much to the wrath of several people, I’m gonna…
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…
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
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…
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…
Making ImmutableJS work with the advantages of TypeScript ImmutableJS is a great library. It even has TypeScript support. But, with it, there’s no more static type checking. Let’s get it fixed ASAP…
Why you should stop using state reducers in your app to be fully reactive With all the hype for FRP, the only way to manage state seems to be to use a stream of immutable states using reducers. Let’s break that.
Cycle.js Quick Start with TypeScript and Webpack in Visual Studio Code A post that gets you quickly up and running with a cycle.js app with TypeScript and Webpack in Visual Studio Code. VS Code hacks included.
Angular 2 Quick Start with TypeScript and ASP.NET Core in Visual Studio 2015 In this tutorial-like write-up, I hope to get people started quickly with an Angular 2 app with TypeScript and ASP.NET Core RC2 in Visual…