Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

100% Positive

Analyzed from 169 words in the discussion.

Trending Topics

#languages#powershell#windows#before#put#main#file#cool#ones#forced

Discussion (2 Comments)Read Original on HackerNews

perarneng•16 minutes ago
I was forced to use Windows Server for an assignment and I like to learn new languages and PowerShell seemed interesting even though it's really ugly. It's much nicer to work with than Bash since everything is an object instead of having to do complex string magic. I can really recommend people trying it at least. Nushell is similar and probably what you would go for on linux, just played with it a bit and I liked it as well.
gabrielsroka•16 minutes ago
2020

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

True but so does 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 in 2017, 3 years before this article was written. Granted it still comes bundled in Windows. It actually has some cool 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".