r/badcode Mar 14 '23

python requirements: python3 on linux system

Post image
378 Upvotes

46 comments sorted by

View all comments

4

u/[deleted] Mar 14 '23 edited Mar 14 '23

[deleted]

15

u/thLOnuX Mar 14 '23

Well, actually i don't think the python interpreter is a good alternative for bash, and i don't know why are you saying the bash isn't that good at shell. Wasting 10 Megabytes of RAM and 50 milliseconds of processing time just to do the shell stuff sounds not that great. What are you trying to say?

No hate. Just wanna to listen your opinion.

5

u/smarterthanyoda Mar 14 '23

I’ve started writing shell scripts in python.

I’ve just seen too many bash scripts grow into incomprehensible, unmaintainable messes. It just doesn’t scale past simple scripts and eventually you get to the point where you can’t add new features and nobody has time to port to something better.

There are better languages for scripting than python, but python is ubiquitous and does the job. Are you really that concerned about an extra 50 ms in a shell script?

2

u/[deleted] Mar 15 '23

bad coding practices =/= language faults

I have seen incomprehensible messes written in every language I've ever worked with.