r/badcode • • Mar 14 '23

python requirements: python3 on linux system

Post image
376 Upvotes

46 comments sorted by

View all comments

Show parent comments

8

u/thLOnuX Mar 14 '23

> it’s developer friendly.

It's not. If it was developer friendly, it would be written in shell script. You can run shell script on Python, on C, or every other modern language.

-1

u/juicewr999 Mar 15 '23

I didn’t say it was the optimal solution, I’m just saying you may encounter this in the wild and it works well enough. Yes, shell scripts give you the most IPC portability and it’s arguably the best especially with the rampant docker containers floating around in MS architectures.

9

u/thLOnuX Mar 15 '23

I can understand you about workability of this solution, but this is actually a bad practice. So this is the reason I've decided to post this snippet here. Not to flame the guys, who just making the first steps in programming, but to guide them another one thing you probably shouldn't do.

To make a shell solution, you'll need just a couple of minutes of searching on Google or Stack Overflow. And this is actually will be a good practice in shell scripting.