Adventures in Typescript, part 2

Suppose you got a MEAN stack API project using Mongoose for data access. Now imagine you got it using Typescript. It doesn’t make that much difference in terms of project structure, you just got to install the typings for MongoDB...

Adventures in Typescript, part 1

ES2015 brings with it the ability to have modules and specifies several variations of import/export statements to use them. Typescript 1.5 changed its module definition to realign with ES2015 specification, so it supports the same syntax. When transpiling Node.js code...

Upgrading to ASP.NET Core RTM

With the release of ASP.NET Core 1.0, I went about trying to upgrade a project I worked on to the latests bits. It is a small Web API project that used ASP.NET 5 RC2 running on DNX in Ubuntu and...

Light at the end of null

One of the coolest things in the new C# 6.0 is the Null-Conditional operator. It provides a way to largely simplify and avoid one of the most common things in c#: protecting against null. So, instead of doing this: var...

Random Lodash Pearls

Collection operations never cease to amaze me! From SQL to .Net’s Linq to now JavaScript’s Lodash provide some awesome tools to manipulate them. Just came across these 2 simple examples from the Lodash docs related to random operations: _.random Generates...