this post was submitted on 05 Mar 2025
1496 points (99.0% liked)

Programmer Humor

20954 readers
2631 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 18 points 21 hours ago* (last edited 20 hours ago) (24 children)

That's why I use nushell. Very convenient for writing scripts that you can understand. Obviously, it cannot beat Python in terms of prototyping, but at least I don't have to relearn it everytime.

[–] AnUnusualRelic 23 points 20 hours ago (14 children)

So the alternative is:

  • either an obtuse script that works everywhere, or
  • a legible script that only works on your machine…
[–] shortrounddev 5 points 17 hours ago (10 children)

I am of the opinion that production software shouldn't be written in shell languages. If it's something which needs to be redistributed, I would write it in python or something

[–] AnUnusualRelic 4 points 14 hours ago (1 children)

For a bit of glue, a shell script is fine. A start script, some small utility gadget...

With python, you're not even sure that the right version is installed unless you ship it with the script.

[–] shortrounddev 2 points 14 hours ago (1 children)

I try to write things to be cross-platform; with node builds, I avoid anything using shell scripting so that we can support Windows builds as well. As such, I usually write the deployment scripts in Node itself, but sometimes python if it's supported by our particular CI/CD pipeline

[–] AnUnusualRelic 3 points 14 hours ago (1 children)

I keep forgetting windows exists.

[–] shortrounddev 1 points 14 hours ago (1 children)

Most common development platform in the world

[–] AnUnusualRelic 2 points 14 hours ago (1 children)

I quit using it in the WfW days and never looked back.

[–] shortrounddev 1 points 14 hours ago* (last edited 14 hours ago) (1 children)

You haven't used windows in like 30 years? It's quite different now lol

[–] AnUnusualRelic 2 points 13 hours ago

Maybe. I'm fine with my Linux machines though.

load more comments (8 replies)
load more comments (11 replies)
load more comments (20 replies)