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

Programmer Humor

32483 readers
395 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
[–] magic_lobster_party@kbin.social 95 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.

[–] cyborganism@lemmy.ca 22 points 9 months ago (18 children)

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

[–] magic_lobster_party@kbin.social 6 points 9 months ago (13 children)

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

[–] Kache@lemm.ee 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

[–] magic_lobster_party@kbin.social 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.

[–] potustheplant@feddit.nl 4 points 9 months ago* (last edited 9 months ago)

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

[–] Blue_Morpho@lemmy.world 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.

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