Recent Posts

Reducing whitespace in the HTML generated by Jekyll

09/08/2017  |    3 minute read

The output HTML of Jekyll-based sites may contain quite a lot a whitespace. This is especially noticeable with pages relying heavily on Liquid tags with conditional logic or looping.

Measuring PowerShell code complexity : Why and How

04/18/2017  |    17 minute read

Why does code complexity matter ? As Administrators or engineers, we deal with complexity all the time. We build, document, support and deploy complex systems on a pretty-much-daily basis. The expertise required to work with these systems is part of what makes us valuable. So why should we st...

Unit Testing with Pester : Storing complex Mock objects in a JSON file

02/14/2017  |    7 minute read

When unit testing with Pester, mocking is pretty much unavoidable, especially for code related to infrastructure, configuration, or deployment. We don’t want our unit tests to touch files, databases, the registry, and not to mention the internet, do we ?

Merging data from 2 PowerShell DSC configuration data files

01/06/2017  |    8 minute read

As you probably already know, when writing a DSC configuration, separating the environmental data from the configuration logic is a best practice. So all the environment-specific data gets stored in separate (typically .psd1) files. If you work with PowerShell DSC at medium-to-large scale, you (ho...