I’m alive! There are no great things I’ve learned or need to remember for a while, but I decided that collecting the small things is also worthwhile. So, here are several things I learned about the last month. .ToLookup() Sometimes, you have a big list of Things. A Thing, for example, has the properties Id,…
Category: Professional
Unit Testing MVC Responses
Something I keep having to look up is testing MVC (5) responses. There are several types of responses you can return on a MVC method: Plain ol’ object. IHttpActionResult. HttpResponseMessage. Plain ol’ object Returning an object means that it will be converted to the format in the Request (e.g. JSON, XML). However, you have no…
.NET Core Authorizations with Active Directory
Some things sound too easy to do, but still end up eating a lot of time researching how to do it. Recently I made a small Web Application that had to integrate with Active Directory. To be precise: only a specific set of Active Directory groups is allowed to make use of the website functionality….
Learning by Teaching: TDD
Not too long ago I gave a workshop on using TDD. Not because I like to give workshops or presentations, I am horrible at public speaking (this is worthy of a blog post on its own by the way). However, I believe that the best way of studying something, is by teaching it. It forces…
Entity Framework and calculated properties
Oh, the joys of legacy. Decisions were made, nobody knows why and now you “just” have to work with it. Today was one of those days.It is not as bad as I’ve seen before (Hello critical Visual Basic 6 code), but still. Having an awesome quality tool like SonarQube regularly scanning your solutions will catch…
Upgrading to .NET Core (part 1): The Beginning
As is tradition, any new project (for a given definition of new) will be surpassed by the technology it uses. The project I’m currently working on was originally targeted to run on .NET Framework, and is doing a good job at it. However, being a new project we also have to be ready to run…
Going head-first into a running project
Recently I have been thrown into a running project. Again. It seems that this happens pretty often in my career, new projects are a rare occurrence. Not the most fun thing to do. Every time, you are behind on the rest on the team. I always have the nagging feeling I should have been up…