this post was submitted on 27 Jun 2024
425 points (95.5% liked)

Programmer Humor

19716 readers
75 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 40 points 5 months ago* (last edited 5 months ago) (3 children)

Hey man, I once had an engineering exec (who didn’t last very long) who decided engineers would be stack ranked by SLOC. You can imagine how easy that metric was to cheese, and you can also imagine exactly how that policy turned out.

Give an engineer a stupid metric to meet, and they’ll find a stupid way to meet it for you, if only out of malicious compliance.

[–] [email protected] 18 points 5 months ago* (last edited 5 months ago) (1 children)

I'd have a field day with that. Max line length 70 or 75, excessively verbose function and variable names, triple the normal amount of comments, extra whitespace wherever possible, tab width 8, etc. The possibilities are endless for that metric.

[–] [email protected] 4 points 5 months ago

Dude... Just write a python script that makes small changes to white space every few seconds and commits them.

[–] towerful 3 points 5 months ago

When metrics become targets they fail to be metrics any more

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

Campbell's law goes brrrrr.