Coding and photography

Photogrammer

Why the scope of your tests matter

Writing good tests takes skill I like automated tests, I use them constantly while working on code bases. Tests increase my productivity and…

Should you fake it or mock it

Volatile dependencies When writing good unit tests there are several properties you want to uphold: Reliable, nobody likes flaky tests Fast…

A factory

Simplified DI with Funcs

Injecting a factory When working with a DI container you sometimes want to inject a factory to resolve a type. This might for instance be…

lost in the desert

PackageReferences and xml documentation

Missing files with PackageReferences

a street that is under construction

Migrating from Jekyll to Hugo to Gatsby

Migrations.... migrations.... migrations....

Reinterpret cast in C# code

C# 7.2 Reinterpret cast in safe code

A different way of looking at the same thing

A null reference exception in C#

C# 8.0 Nullable References

Is this the end of the nullable reference exception?

Lantern shop in Hoi An, Vietnam

Travel photography workflow

Full RAW workflow with your phone

Stackalloc in safe C# code

C# 7.2 Stackalloc in safe code

Throw it on the heap or stack it up

Trees

Singularity and expression trees

Why write yet another DI container? Some time ago I was searching for a way to make code that used reflection faster. I came across…

Screen showing metrics

Code coverage for your repo

Which unit tests am I missing? This was the question I was facing when writing unit tests for Singularity. Since Singularity is a dependency…

Girl letting go a latern

Streamlining releases

The old release workflow Last week I was busy streamlining the Singularity repository. One of the things I did was streamlining releasing a…

Lots of open books

First blog post and Jekyll

Woohoo my blog is up and running. At first I thought it would be quite a hassle to setup but in the end it turned out to be extremely simple…