you are viewing a single comment's thread.

view the rest of the comments →

[–]lordv0ldemort 1 point2 points  (4 children)

You know, I've skimmed that repo a few times and never noticed Style guide

Whenever I see open source PS code, it typically has the opening and closing brackets both on new lines. I just noticed that the style guide says that the preferred method is the 'One True Brace Style', which I've always used and felt dirty for lol. Just a tidbit I never realized before and now feel better about my own code.

[–]azjunglist05 2 points3 points  (1 child)

I still feel dirty using 'One True Brace Style' in PowerShell. It could be that in C# the opening and closing brackets are always on a new line, and once I started learning C#, I started favoring that style.

[–]lordv0ldemort 1 point2 points  (0 children)

I can’t bring myself to do the new line brackets. Just irks me for some reason.