8 points

The only validation you should expect and need is self-validation.

Your work is absolutely valid and important. Your efforts are absolutely appreciated and worthwhile. But people are stuck in their own heads and work and stress and concerns and desires and validation loops and it takes actual work to break out of that to not only offer appreciation but to even realize that they need to offer it.

And for that reason, you should also really appreciate anyone that validates you.

permalink
report
reply
1 point
Deleted by creator
permalink
report
reply
1 point

They may not know but they will when I explain kekeke

permalink
report
reply
6 points

Things that could have been done in bash is python’s best usecase. And bash sucks for scripting. Why not python?

permalink
report
reply
1 point

Xonsh

permalink
report
parent
reply
19 points
*

There are many cases where bash/shell is better than Python. For one, any time you’re just stringing together 2-4 existing shell tools, bash has unbeatable speed since it’s all running in C. Plus, you should probably learn the tools anyways to handle CLI stuff on a day-to-day level, so the knowledge is reusable and becomes very intuitive to compose into some crazy one-liner piped chains of commands. If I just want to loop over a set of directories and do a couple chained CLI commands on each directory, this is the way I go.

That said, in cases where you’re doing something very custom, any time you’re doing something that can’t be simply described as a chain of CLI tool transformations, and any time you want to maintain a global state across a complex set of operations outside of a pipeline, I agree that Python is generally a more robust solution with much easier maintainability.

permalink
report
parent
reply
4 points

compose into some crazy one-liner piped chains of commands

Why not something that is completely redesigned from the ground up:

permalink
report
parent
reply
2 points

That looks really elegant. I think I’m gonna give it a try. Thanks a lot for the recommendation!

permalink
report
parent
reply

have you ever tried to recreate a simple shell pipeline in Python

permalink
report
parent
reply
-2 points

If we’re talking about 5 like script, then sure. Just use bash. But python is much better long term, in my experience, for scripts any bigger than that.

permalink
report
parent
reply
-8 points

Not really true. Python was created for, and is still best used for data science. It’s user-friendliness made it a first for many inexperienced programmers too, and it started to be used for way more than it was initially intended. I’m not saying it’s bad at everything else, but there’s most certainly better tools for the job.

permalink
report
parent
reply
3 points

I won’t argue with what it was created for, but I disagree that it’s best usecase isn’t as a bash replacement. That’s the only spot I’ve used and liked it.

permalink
report
parent
reply
2 points

I’m using G’MIC for raster-graphic image-processing, but I can do other things in it too with ease. I feel this post so much.

permalink
report
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.1K

    Monthly active users

  • 953

    Posts

  • 36K

    Comments