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...

Snippets
Read more

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...

LanguagesPatterns
Read more

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...

LanguagesPatterns
Read more

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...

LanguagesTechnology
Read more