Blog Posts

This a list of all my blog posts.

You may have seen this code before...

In general, I’m not a huge fan of static code analysis because I haven’t managed to find a continuous, valuable use case on an ongoing basis. One exception is DupFinder from Jetbrains which is a really cool tool that can be used to analyze your .Net code base and check...

Read more

What use is a -Switch that cannot be turned off?

One of the great things of PowerShell scripts is we can accept and validate parameters before the input values even reach our code. We can check for blank or null values or limit the input range for an argument. You can use default values and set the parameters as mandatory...

Read more

The How Tos and What to dos

I use PowerShell a lot. And I mean a lot. I’m a big fan of scripting and automation and anything that makes my development life easier. Where PowerShell really comes into it’s own is when you realise you have the full power of C# right there, unlike say with batch...

Read more

And it is made of cheese...

Since I published Part 2 of the Git Log Viewer, our process has been updated to include a PreProduction (PreProd) environment. We found that only having one testing environment and our extensive use of Feature Toggles meant that only the new features (or new implementations of existing functionality) were being tested and not the existing code.

Read more

Or how to keep your server side and client side in sync

Enums are useful for flags or for any known limited set of inputs. Using them in C# allows a measure of protection in that invalid values will be disallowed at compile time. However runtime errors can still occur anytime you have serialiation of the values, for example when receiving requests...

Read more