Hacker News new | ask | show | jobs
by gabrielsroka 50 days ago
2020

> PowerShell scripts require all subroutines to be defined before they can be called

True but so do Python and other languages. My solution is to put main at the top and then the very last line of the file calls main.

> "New" as a verb

Look in your File menu.

> PowerShell ISE

Was put in maintenance mode in 2017, 3 years before this article was written. Granted it still comes bundled in Windows. It actually has some great features, but also many quirks. New work is done in Visual Studio Code.

Many of the rants could be made against other languages. I admit PowerShell is not perfect, but there are some really cool things about it.

Bjarne Stroustrup, the creator of C++, is famous for the quote: "There are only two kinds of languages: the ones people complain about and the ones nobody uses".

1 comments

This is not the gotcha you think it is. Nobody that has used C++ in a non-trivial setting would regurgitate that Stroustrup quote unironically. C++, much like Powershell, is a warcrime of a language.

I'll give it up to Powershell though, it actually had some good ideas... albeit with awful execution. Can't say the same about C++.