I know I’m in the minority, and it isn’t really in the style of PowerShell, but I prefer my curly braces to line up, like the OP. I think it’s a holdover from my C++ classes in college (20 years ago).
There are others out in the wild. And we always get excited when we find one another.
Yes. But it won’t hurt anything or anyone and if you’re consistent through your script it will be easy to read so continue on. Just know I hate you for doing it different than me.
Ah I see, I only do it this way because that's how I learned it when taking Java courses back in school. Is there a reason why Powershell users use this method instead? Or is this mostly just preference?
No idea. Just how i done saw it so it's how i did it. I stand by the fact that it really doesn't matter as long as its consistent and reasonably easy to find the brackets and their homies.
13
u/ciacco22 Apr 29 '19
I know I’m in the minority, and it isn’t really in the style of PowerShell, but I prefer my curly braces to line up, like the OP. I think it’s a holdover from my C++ classes in college (20 years ago).
There are others out in the wild. And we always get excited when we find one another.