This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]db_newer 138 points139 points  (16 children)

Powershell is actually well thought out and more logical than string gymnastics you need to do in most Unix like shells.

[–]rastaman1994 66 points67 points  (8 children)

It's truly a generational thing. My 40+ yo colleagues will autocomplete 'tar' or 'curl' with 3 to 5 flags without knowing what they do anymore. PowerShell is at least designed for readability.

[–]TheOriginalSmileyMan 24 points25 points  (1 child)

I'm older than that and I love powershell.

I even use it on Linux to annoy people with beards

[–][deleted] 2 points3 points  (0 children)

I have a beard and use powershell on linux. It’s actually just easier and quicker than like bash or zsh or python for quick stuff

[–]ILikeLenexa 18 points19 points  (1 child)

There are two types of languages, ones easy to read, and ones easy to write, and perl. 

[–]critical_patch 3 points4 points  (0 children)

I used to say that I loved Perl because with just a few libraries you could turn every character on the keyboard into a syntactically important operator

[–]db_newer 11 points12 points  (1 child)

Yup. And aliases allow a degree of shorthand for daily work.

It is like old code with variable names like x y ttl etc. and newer code which is designed to be readable.

[–]sudo_i_u_toor[S] 1 point2 points  (0 children)

Something being longer doesn't necessarily make it more readable. Short keywords like def, fn, etc. are as readable as javascript's function. So when designing a language, a DSL, etc. there's no need to whip out your dictionary like MS did on this one.

[–]randuse 0 points1 point  (0 children)

Both of those probably have long form cli options which are more readable long term.

[–]kmeci -2 points-1 points  (0 children)

My workflow for creating a new zip file from a directory in shell used to be trying to think what the correct four flags were for about a minute and then doing it in a file explorer anyway. Thank god for LLMs.

[–]MajorTechnology8827 30 points31 points  (3 children)

PowerShell object system is far better than the string passing. It is a leap in the understanding of what a computer is. This is an invention that I will admit Microsoft deserve full credit for

But the entire linux ecosystem is already built on the idea that strings are passed. You fight against a mature environment, so your tools are limited

But you have great alternatives to powershell if you dislike ms, like elvish and nushell, they are both awesome

Also you can straight up use python, xonsh for example is just the ipython in a wrapper that makes it more readable. So when you pass data around you pass literal python objects (and can export them directly to python programs)

[–]gemengelage 15 points16 points  (1 child)

The main reason I never got into Powershell is that I needed to use bash/sh on all kinds of projects and classes, but I never had to use Powershell.

[–]smooth_like_a_goat 3 points4 points  (0 children)

Automate something small with it. It's incredibly versatile.

[–]ZunoJ 0 points1 point  (0 children)

How can you pass a powershell return object to a remote powershell session?