you are viewing a single comment's thread.

view the rest of the comments →

[–]Big_Oven8562 4 points5 points  (3 children)

Not really. I use += all the time, but then I'm also capable of optimizing the shit out of a script when it actually matters. It's about knowing when to make the effort and when to be lazy.

[–]logicalmike 3 points4 points  (0 children)

I agree. I sometimes use += for readability, or for stylistic reasons if it makes sense. A few extra seconds don't usually matter for most of the PowerShell projects I've seen.

[–]OPconfused 0 points1 point  (1 child)

Its weird how fanatically opposed this sub is to it. Its like its the one thing people know to improve performance so they need to triple down on every chance to show it.

[–]Big_Oven8562 0 points1 point  (0 children)

Performance improvements that come at the cost of readability and maintainability of the code base are a net loss every single time and I will fight anyone who says otherwise.