this post was submitted on 02 Feb 2024
1052 points (98.3% liked)

Programmer Humor

32479 readers
348 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
[–] [email protected] 96 points 9 months ago* (last edited 9 months ago) (36 children)

I would swap Python with C++. Constantly dealing with stupid runtime errors that could’ve been easily captured during compile time.

Did you forget to rename this one use of the variable at the end of the program? Sucks for you, because I won’t tell you about it until after 30 minutes into the execution.

[–] [email protected] 23 points 9 months ago (18 children)

My brother. That's why you do unit tests.

[–] [email protected] 7 points 9 months ago (13 children)

I shouldn’t need to do unit tests for quick one off scripts

[–] [email protected] 9 points 9 months ago (2 children)

What kind of quick one off scripts have large complex scopes where variable renames are difficult to track?

Besides, these days Python has great LSPs and typing features that can even surpass the traditional typed langs

[–] [email protected] 2 points 9 months ago

It doesn't need to have large complex scopes. I have the brain of a goldfish. I program because it's challenging. It's challenging because I'm bad at it.

[–] [email protected] 2 points 9 months ago (1 children)

Mostly number crunching and data exploration tasks. Just so I can make informed decisions about the data I got. I do this rarely enough so it hasn’t been worth for me to install all these extra third party support wheels.

[–] [email protected] 4 points 9 months ago* (last edited 9 months ago)

Those support wheels are for your own (and apparently systematic) errors...

load more comments (10 replies)
load more comments (14 replies)
load more comments (31 replies)