Wednesday, November 2, 2011

Windows Powershell Development (Hell)

I thought MSDN documentation was bad for C# and .NET. Try reading and searching the documentation for Powershell Development. Jesus wept. It is all kinds of awful. Half the links are broken and redirect to "Topic no longer available" as if powershell was 25 years old or something. The font is light grey and barely visible. It would be more appropriate for recipes on a cooking site rather than a technical site. There are huge amounts of text and very few examples and the example they have don't compile. As a final sign of sloppiness the 2.0 SDK downloads into a "/powershell/v1.0" folder, seemingly just for shits and giggles.

Tuesday, November 1, 2011

facepalm - a little mercurial extension

I have been using Mercurial for a few months now and I love it. In particular I love the way it separates the act of committing code from inflicting it on everybody else! It is also extensible and I have written a little python extension called facepalm. This will search the changes you are about to commit for common "gotchas!" such as leaving in mercurial-inserted diff text or my personal weakness - commenting out Ignore unit tests and forgetting to comment back in the Ignore attribute causing the build to fail! D'oh! Facepalm!