3 ms·
The reason I reach for Perl rather than bash is it has far more features and far easier to manage. I don’t bother with python as you get into a horrendous mess
by iso947 6y ago
The reason I reach for Perl rather than bash is it has far more features and far easier to manage.
I don’t bother with python as you get into a horrendous mess with pip breaking and the v2/v3 issue.
Not every piece of code needs to serve a million people, not every piece of code needs to be sold to google, sometimes you just need code to do a simple occasional job and not change every couple of years.
- jeffdn 6y agoThe Python v2/v3 "issue" has been a non-issue for years now. If you're writing code to do a simple occasional job, Python is perfectly suited to that.
- edoceo 6y agoSo is perl, and tcl and shell and JavaScript and PHP. For a "simple occasional job" the right tool is the one you know best (or the organization knows best).
- jefftk 6y agoPython is fully on v3 now. It was a terrible transition, but it's done.
- cwyers 6y agoThis is true some places, but it's not true everywhere. It's just that the places stuck on Python 2 often have other disconnects that make them "invisible" on the Internet.
- Izkata 6y agoHahaha no. Much of our code is still v2, with no hint of a transition happening any time soon. It's mostly in maintenance mode. Quick edit: To sibling comment's point, we're not a tech company, so it's very difficult to get this type of work done. It pretty much only happens on new development (where we are using python3), but that new development doesn't replace the old code.
- scoopertrooper 6y agoPython 2 just reached end-of-life with the last-ever update arriving in October this year. So you better get moving soon if your code isn't completely air gapped. https://adtmag.com/articles/2020/01/09/python-2-end-of-life.aspx https://adtmag.com/articles/2020/01/09/python-2-end-of-life.... There are current three outstanding CVEs for the latest version of Python 2. Hopefully, they'll be patched up in the upcoming release, but good luck after that. https://www.cvedetails.com/vulnerability-list/vendor_id-10210/product_id-18230/version_id-305022/Python-Python-2.7.17.html https://www.cvedetails.com/vulnerability-list/vendor_id-1021...
- iso947 6y agoQuick search to do something on the web and there’s a strong chance it will be python2. Pip install? Or pip3 install? Who knows, whatever you do don’t follow the instructions s to upgrade pip as that breaks Debian and Ubuntu installs. Cpan was always a bit ropey but never this bad.
- spanhandler 6y agoNot having any practical need for a “Perl version manager” as other languages have (shit, it’s even useful with Go) is an underrated benefit of choosing a language as stable as Perl. Version? What is your distro 30 years old? Just run it!