I’m becoming a Barfer!

More than a month! My last post on this blog was more than one month ago. I should write more often. No wait let me rephrase that: I should write on this blog more often. Why? How I spent my last month? Barfing, here’s how! Ok, let’s add more details. A...

2 minute read

How to configure StructureMap to inject a typed logger

Logging is an essential part of every application. Might be dead simple as Console.WriteLine() or a complex third party library but every piece of software needs a way to communicate its status. In my last project I have decided to use the wonderful NLog . One of the good things...

3 minute read

How to detect current culture in javascript

Detecting the current culture in javascript can be really useful in many cases, an example might be a dropdown with a list of languages and the user’s one as default selection. I am getting a little lazy these days, I would like to write more articles about software architecture, design...

3 minute read

Free Microsoft eBook giveaway!

A friend of mine just pointed me to a very interesting link that I think it’s worth sharing: https://blogs.msdn.microsoft.com/mssmallbiz/2017/07/11/largest-free-microsoft-ebook-giveaway-im-giving-away-millions-of-free-microsoft-ebooks-again-including-windows-10-office-365-office-2016-power-bi-azure-windows-8-1-office-2013-sharepo/  It’s from the Eric Ligman blog on MSDN, he’s sharing a HUGE list of Microsoft eBooks about basically everything, from Azure to Office, to Powershell to .NET development. I have started with...

1 minute read

How to create a docker container for a WordPress website

This is my first post on Docker so please be gentle. I am going to start with something easy: how to create a Docker container to host a WordPress website. One word before we start: don’t do this on a production server! There are more rules and checks you have...

2 minute read

Don’t worry, Heimdall will watch over all your microservices.

TL;DR : I wrote a service registry tool, named Heimdall, go and fork it! Long version: almost every time I am working on a piece of code I get stuck on something and after a while I get new ideas for new projects. This may lead to a huge number of...

2 minute read

Command Handlers return values in CQRS

I have recently come across this very interesting blog post by Jimmy Bogard ( the guy behind Mediatr, just FYI). He’s talking about CQRS, and makes a good point about how the user should be informed of the result of a Command execution. Should the Command Handler return a value?...

2 minute read

Unit testing MongoDB in C# part 4: the tests, finally

More than a year. Wow, that’s a lot, even for me! In the last episode of this series, we discussed about how to create the Factories for our Repositories. I guess now it’s time to put a use to all those interfaces and finally see how to unit test our...

6 minute read