@thatguyoverthere
> perl
I will court-martial you!
@thatguyoverthere
Ha-ha-ha! No, for one-liners it's actually a perfect tool!
Still have PTSD from using it β every function being a collection of =~ s/β¦/β¦/ π
Probably why we don't have inline regular expressions in Python and have this re.compile() thing β a hint that coders should at least name them.
@thatguyoverthere Not as good as Perl is for manipulating text, but Python is a decent scripting language. I wish I would use it more where I use shell scripts. It has some amazing third-party modules too, such as requests. If they weren't attempting to use it for everything and the kitchen sink and weren't introducing breaking changes that often, it would be a great tool!
@thatguyoverthere
My experiences are the opposite of yours: I've seen originally neat code base in Perl turn into a disgusting mess over mere weeks when being worked on by a medium-sized team under a time constraint. At the same time a smaller team have expanded s much less capable framework that was originally in Python, so that it almost reached function parity. And their code did NOT turn into abominable shite. This was partly thanks to the enforced use of whitespace.
@thatguyoverthere
Needless to say, we all switched to the Python implementation eventually π
Yes, there are other ways to fix it, enforced Code-discipline, code reviews⦠But I've seen it with my own eyes: when time presses, commits get pushed no matter what, just because right now the code does what it has to do. So for me it's Python since then.
@thatguyoverthere
Just like you, I respect other opinions, using Perl for one-off thingies β that is perfectly fine, but I will never approve of using it for anything bigger β never again! π
And I agree, Python gets overused a lot, it gets used where it's not appropriate, its performance is inadequate in some of these use cases, but as a scripting language? It's a good one β better than most alternatives.
@thatguyoverthere
> I think relying on external modules too much can lead to sloppy code that is difficult to maintain
True, but there are really good ones β the ones that do not what you could do with a one-liner, but provide adequate level of abstraction over complex things, like above-mentioned requestsβ¦
@thatguyoverthere
Or bottle.py β the single file web framework I use for my cmus web remote control β it made switching to Python 3.13 in which they have deprecated the cgi module, which was in the standard library since the early days, less painful.