Simply being lazy and concurrent
I recently worked on a long running migration project, where we needed to ensure that some of the sql migration scripts were only called once per entity that was migrated, in a threadsafe manner. I looked to the System.Collections.Concurrent namespace, but none of the classes...
Template for TypeScript, Handlebars and Webpack architecture
I recently started a new project, based on my own medicine of not using a framework, but building a simple architecture, that can grow and change freely based on needs as they arise. It is coming along very nicely, and has allowed us to have a pretty clean architecture. For this...
TypeScript patterns: Controller
The next pattern I want to take a look at, that is fundamental to how many JavaScript applications are structured, is the Controller pattern. There are different definitions for what a Controller is on the client, depending on what framework people are used to working with. As...
TypeScript patterns: Lazy
I have been working with TypeScript for quite a while now, and I really enjoy how the strong typing enables better tooling, as well as more understandable code, where the patterns of old look more like themselves, than they do in plain JavaScript. With the adoptation that...
TypeScript 2 – full speed ahead!
I have been happy working with TypeScript for quite a while now, and I am happy to say that things are moving ahead with the language quite well. It is not that long ago that TypeScript version 2.0 was released, and with steady releases we are now at version 2.3. One of the big...