C# Code Style in Visual Studio 2017

by Olav Nybø

The Code Style options for C# in Visual Studio 2017 have improved a lot since Visual Studio 2015. In Visual Studio 2015 there wasn't a lot of options to choose from, there were only 4 settings. I don't think I ever changed any of them from their defaults. The Visual…

Linq and Expressions

by Olav Nybø

Recently I was writing some Entity Framework linq queries at a client. Nothing unusual about that, but the compiler was complaining: "An expression tree lambda may not contain a null propagating operator". Sure enough I had included a '?' aka "null propagating operator in my query. I thought I…

Hot loading React Components in TypeScript

by Olav Nybø

Hot loading of React Redux components makes for a absolutly fantastic developer experience. The ability to get immediately feedback in the browser when any part of my javascript application is changed and saved is priceless. It is simply awesome! I have been using Angular for a long time, but watching…

Generate HTML in the backend

by Olav Nybø

Recently I was working on a Azure Web Job that was reading from an Azure Queue. The requirements of this job was that it should read the queue messages, do some processing and then generate and send an HTML-email based on the incoming message. Since the request isn't a regular…

Connection strings in Suave on Azure

by Olav Nybø

I recently used the suave web development F# library to develop a proof of concept application. Of course we wanted to deploy the application to azure and this looked very easy as both Tomas Petricek (Dojo suave) and Scott Hanselmann had posted samples on how to do this (Running Suave.…