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

Programmer Humor

32572 readers
200 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] 93 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] 47 points 9 months ago* (last edited 9 months ago) (4 children)

you need a linter, bro

when integrated into the editor it'll highlight stupid mistakes as they're typed

I recommend Ruff for real time checks, and pylint if you need a comprehensive analysis.

[–] darcy 17 points 9 months ago (2 children)

sure, but thats just outsourcing the problem.

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

It's also a solution...

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

As if that's a bad thing... it means you're not locked in with a tool you don't like and the language itself doesn't dictate your workflow.

There's very little benefit and a lot of potential problems in using a single tool for everything.

load more comments (1 replies)
load more comments (32 replies)