this post was submitted on 11 Feb 2025
192 points (97.5% liked)

Programmer Humor

20499 readers
1347 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 2 years ago
MODERATORS
 

If it compiles it works, right?

I'm not gonna act like I read it all.

all 19 comments
sorted by: hot top controversial new old
[–] [email protected] 30 points 3 days ago (1 children)
[–] JohnnyCanuck 40 points 3 days ago

Not git, Perforce, but I used to have a guy on my team that would do weeks of work without checking in. 1000s of lines in 10s of files.

I gave him shit for every code review, every time we had 1-on-1s, and while he was doing his tasks. Nothing got through to him.

So I just kept dragging him back on check-ins. I'd nitpick the shit out of every line (and normally I hated that.) His stuff would inevitably break the build or be full of bugs anyway (duh) so I never felt bad that I was holding back his career since he was never getting things done "on time."

If you can't/won't break your work down into smaller chunks you aren't a skilled programmer and/or don't have respect for the people you work with who have to review your shit.

[–] [email protected] 31 points 3 days ago (1 children)
  1. Write a ton of code
  2. Remove all newlines
  3. Submit 1-line PR
  4. Profit
[–] [email protected] 14 points 3 days ago (1 children)

Python: nice try Satan, but not today

[–] [email protected] 3 points 3 days ago

Also, Python: Please rewrite your multi-line lambdas into tuples of logic statements that you pick the last one of.

Satan has a firm grip.

[–] [email protected] 18 points 3 days ago (2 children)

The correct response to any PR that is too large to digest is to reject it and ask the author to split it up.

[–] [email protected] 11 points 3 days ago (2 children)

No it is not. It depends on the codebase - if it is something relatively new, a proof of concept or something that is bound to change soon, there is no point in slowing the development down just because it is "too large to digest".

[–] [email protected] 5 points 2 days ago (1 children)

If you're just rubber-stamping in code reviews, why even have them in the first place in that case? They aren't exactly providing you with any mileage at that point.

[–] [email protected] 1 points 2 days ago

Because not all parts of the repo have this status. Some are stable, well tested and critical.

[–] [email protected] 10 points 3 days ago (1 children)

Then saying that you have looked through and reviewed the code would be lying. And that is unprofessional.

[–] [email protected] 6 points 3 days ago (1 children)

Is sitting down and understanding the code in the PR not an option?

[–] [email protected] 5 points 3 days ago (1 children)

I'm not sure what you are getting at.

[–] [email protected] 1 points 3 days ago

Clearly they hate efficiencies.

[–] [email protected] 0 points 3 days ago* (last edited 3 days ago)

Sure but who's got time for all that aggravation? Especially if it's not part of the codebase I have to work with personally. LGTM and let it be someone else's problem.

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

Statistically, at least half of changes are just indentation anyway

[–] [email protected] 3 points 3 days ago

Maybe in your PR's. 😁

[–] caseyweederman 1 points 2 days ago

Spaces! Tabs! Spaces! Tabs!

[–] [email protected] 3 points 3 days ago

Or maybe use a better workflow where you’re not first finding issues after the work is already done?