this post was submitted on 28 Nov 2023
598 points (97.9% liked)

Programmer Humor

31217 readers
517 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 7 months ago (1 children)

A good sense of "code smell" is one of the most valuable programming skills. I think your "probably" is justified: if you're doing X, you should look twice at how you're doing it. Maybe it's right, but usually it's not, so it's worth a pause and a thought.

[–] dzervas 1 points 7 months ago

huh, you’re right! I’m trained on a different kind of code. In C# in particular, which I use mostly to do sneaky stuff (patch/inject runtime code to, um, “fix” it) and when I see a project that it’s too clean it smells

I also see python code (I code regular stuff in it) that could be written much more cleanly using monkey-patching