this post was submitted on 12 May 2024
518 points (96.9% liked)

Programmer Humor

32342 readers
1181 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] firelizzard 3 points 5 months ago (1 children)

so you have to catch all exceptions then do extra work to tell what the specific situation is

That’s horrifying. That’s a solid reason to avoid Python like the plague.

[–] [email protected] 4 points 5 months ago (1 children)

While i also disagree with python's tendency to use exceptions as control flow

Python is a pretty stellar scripting language. I wouldn't use it for app dev, but it's quite handy for the odd automation or CLI task

[–] firelizzard 2 points 5 months ago

I've done a little bit of Python in the past, the biggest thing being an automation task that borderline became an app. I certainly can imagine using it for scripts, though I default to bash because that's almost always available but TBH mostly because inertia. Beyond that my default is Go because inertia (and I love Go). I watched a video by the Primeagen (on YT) - in his view, Rust is better for text/data pipelines and CLI tools. Being very familiar with Go and not at all familiar with Rust, that's an interesting take because honestly writing a CLI in Go is kind of meh.