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…

Parameter count mismatch between X-Forwarded-For and X-Forwarded-Proto

by Anders Austad

These are my fieldnotes from experimenting with the ForwardedHeaders middleware on ASP.NET Core 1.1 and 2.0 - sparked by having a production log full of Parameter count mismatch between X-Forwarded-For and X-Forwarded-Proto warnings. I've set up a github repo and a simple Postman example here. Background The…

End-to-end with Selenium: Writing your first UI-test

by Hallstein Brøtan

This is a basic example of how to write your first automated UI-test using C#, Visual Studio 2017 and the NUnit Framework (xUnit can also be used). The purpose of this blog post is to give you a clean and easy example to get started with UI testing. For implementation…

End-to-end with Selenium: Why you should UI-test

by Hallstein Brøtan

You want to be productive when building web applications. That means iterating fast and delivering continuously. As your application grows in complexity, how can you assure its quality - on each build? Say goodbye to manual regression testing and full mocked unit tests - get started with end-to-end automated UI-testing!…

Easier React Native upgrade with patch-package

by Christian Brevik

Anyone who has worked with React Native (RN) for some time know that the core contributors are not afraid of introducing breaking changes. So upgrading from one version to the next can sometimes be difficult. It became a lot easier when they introduced react-native-git-upgrade, which if you aren't using yet,…

NDC 2017 - What did I miss?

by Hallstein Brøtan

The purpose of this blog post is to give you a shortlist of talks that you might have missed during NDC (Norwegian Developer Conference) 12.-16. June 2017. Introduction NDC has just ended its 10th consecutive event in Oslo. As always, the speaker list contained big names like Troy Hunt…

A pile of anti-forgery cookies

by Anders Austad

Opening the Chrome console on one of our web apps I noticed this: A huge amount of anti-forgery cookies with similar names, all valid for the same domain. These will be sent over the wire for every single request to that domain, as seen here: Extra payload that won't be…

Easy TypeScript with React Native

by Christian Brevik

Just here for the code sample? Check it out here. Trying to combine TypeScript (TS) with React Native (RN) has historically been kind of difficult. It has been possible by employing some clever, but hacky, solutions. The problem is, that those solutions are difficult to maintain. And they might become…

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

Forward Disqus comments to Slack using Azure Functions

by Anders Austad

Hello! Today we're cooking up a new recipe titled "Potion for forwarding Disqus comments to Slack". It's experimental, and sometimes smells bad, but it's fun and gets the job done. Bring your apron! (If your blog is using the Disqus commenting engine, the following solution can be used…