Posted in Powershell

Policing Code

I have to preface this with I truly respect the idea and the gentleman who initiated ScriptCop.  That said it sort of brings up a sore point that struck me during the last Scripting games. 

I am all for beautiful functioning code but Powershell seems to have brought a large amount of developer oriented folks into the community and the mix with System Administrators becomes interesting.  When I first started with Powershell I was doing lots of vbscript so I was able to focus on code and listening to the great minds who were not just teaching the powerful language but to optimize it.

I would love to sit and perfect my code, but as my new job dictates, there isn’t time to write beautiful code.  And that is just one issue I have with the critiquing.  Granted I think that an employer who wants you to apply Powershell technology but doesn’t think you should spend time doing it right is problematic but, that is how it is.  Additionally when I write code, I have to think about it’s readability, and readability amongst a varied expertise.  Things like long concise pipelines.  They look very cool and are normally very proficient, but think about the SysAdmin who might have to perform an after hours support call when it isn’t functioning correctly.  Despite the huge powershell community, my day to day experience indicates there are more Windows System Administrators that are not even looking at Powershell and most never progressed beyond batch files.  Breaking a pipeline into separate steps is just a more debuggable format in my opinion.

I do think ScriptCop is a great idea but maybe applied more towards a uniform way to apply approved standards to a library of scripts.

Advertisements
Posted in Powershell

Loyalties

So, this post is more about personal loyalties than Powershell itself.  The recent changes with PowerGUI have me contemplating changing my default editor.  I have found PowerGUI to be great, but part of the greatness was the Product Manager.   The product is great, especially the editor.  I did buy the pro version and quite frankly in my environment it didn’t give me anything I could use but it seemed right to support the product as I as endorsing it to everyone I worked with.

At this point I am considering going back to PowershellPlus but after I played with the most recent beta I miss the original version.  I still use Sapien for when I have to work with vbscript code but I find it way too bloated when comparing it PowerGUI.  When it’s all said and done I think I will be deciding between the ISE and the free PowerGUI.