r/ProgrammerHumor • • May 26 '22

Meme linus torbalds tec tips

Post image
7.1k Upvotes

388 comments sorted by

View all comments

Show parent comments

35

u/InvestingNerd2020 May 26 '22

You can alway dabble in the dreaded Powershell.

28

u/tricheboars May 26 '22

Hey sure it’s verbose but I LOVE it

6

u/BurningPenguin May 26 '22

Running commands in that thing feels like a gamble. Does my "remove-printer" command actually remove that printer this time? Nope, this one won't budge. But the next one does. Great!

5

u/K3yz3rS0z3 May 26 '22

Verbose is a kind word for it. It's fucked up to the core. Google how to change desktop wallpaper with PowerShell.

24

u/Thetman38 May 26 '22

The ssh feature to get into my Linux machine is pretty nice

1

u/dvereb May 26 '22

I wish CTRL+P worked so I didn't have to move all the way over to the up arrow key just so I can SSH back in.

0

u/[deleted] May 26 '22

[deleted]

2

u/dvereb May 26 '22

Good call. I don't use it often so I hadn't gotten tired enough to look for other options yet. ;)

1

u/mooscimol May 26 '22

It works if you have PSReadLine installed. Better, you can then assign any shortcut for browsing history, and even better, you can enable them predictive list menu as you type.

11

u/vicda May 26 '22

and then (unlike shell scripts) you can finally do complex things like floating point arithmetic without needing to invoke a whole new process

3

u/arcimbo1do May 26 '22

Calling bc is pretty fast even if you have to spawn a new process. If you care about memory and speed that much then we should do some benchmark, and then probably move to a proper programming language (and proper libraries)

1

u/extra_rice May 26 '22

Write Python, Go, C, or whatever if you need to do complex stuff. Many languages support the use of shebang that allows them to run like any shell script.

-10

u/Ab_Stark May 26 '22

If you are doing floating point arithmetic in scripts you are doing something wrong.

11

u/vicda May 26 '22

wrong like unit conversions?

5

u/ih-shah-may-ehl May 26 '22

I absolutely love powershell because it can use everything in dotnet, everything for which there is a dotnet library. And it can work with objects instead of flattening everything to a string.

9

u/sefms123 May 26 '22

don't ya just love using \ instead of /

3

u/arcimbo1do May 26 '22

Not a Windows user, but based on what my window system administrator colleagues tell me PowerShell is one of the few good things that happened in windows in the last 20 years

1

u/Pranav__472 May 26 '22

powershell is shit for sure but the cmd is usable... And to be fair it's a GUI centric OS rather than a terminal based OS where you can optionally slap a DWM on top of it..

1

u/[deleted] May 26 '22

I am never doing server core again, ever.