@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
> 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.