Compiling TypeScript using Gulp in Visual Studio

Nowadays, most of us are using TypeScript as a replacement of JavaScript. If you are not, maybe you should look at this previous post: Still not using TypeScript?. TypeScript files must be compiled before you can use them in the browser. Visual Studio does it automatically very great. However, if you want to have a more advanced build workflow, for instance to minify files or running tests, you may want… [read more]

Debugging your .NET application more easily

As a programmer, you often have to debug your code, or the code written by a coworker. I don't like debugging, but as you know: If debugging is the process of removing bugs, then programming must be the process of putting them in. Unless you are extraordinary developer, you'll need to debug your code. Visual Studio provides great tools to help you in this task. The main features are breakpoints, step by… [read more]

Suppress "Use 'throw' expression" suggestion

C# 7 has introduced new features: pattern matching, our variables, tuples, and many more. It's also introduced throw expression. This allows to use the throw keyword in an expression. For instance: _foo = foo ?? throw new ArgumentNullException(nameof(foo)); parts.Length > 0 ? parts[0] : throw new InvalidOperationException(); Adding new syntaxes is great, but I clearly don't like this one to check the… [read more]