Hacker News new | ask | show | jobs
by andresgaitan 1524 days ago
>>Python is such a mess, most likely the script you wrote won't work on a coworker's machine. Either it accidentally needs some global package installed, and then if course the needed version interfers with something else. Or the script only works for certain versions of python etc.

So true. You have to be very careful when writing python, because cool language idioms that you use (or function calls), may not have been introduced in say for example Python 3.5. So when someone runs it with a different interpreter it will not work.

Writing python scripts that not-python-knowing people could use, is an art.

Instead, I work for a company who's core was written in bash and perl, and those scripts still work today after 15 years.

1 comments

I would use Python much less often if it weren’t for Poetry [1], but with it I’ve never had a colleague fail to get a script running.

[1] https://python-poetry.org/

Have problems with poetry all the time. Upgrade minor version of python, suddenly there is no wheel available for some combination of platform+architecture. Forces you to build the stuff yourself, thus having to install a complete cpp build chain.
I haven’t come across this but I use only whatever versions of Python are provided by the python@3.10 and/or python@3.9 Homebrew packages and Debian testing or stable so am very likely not at the bleeding edge.

That or I don’t have interesting enough dependencies :)