this post was submitted on 11 Sep 2023
236 points (96.1% liked)

Programmer Humor

32558 readers
60 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 50 points 1 year ago (1 children)

Simplifying doesn't have to mean fewer lines. LGTM.

[–] Rooki 28 points 1 year ago

Yeah, too simple is sometimes bad too. I had to refactor for better readability and it added 3k lines. But it was easier for everyone to understand the code. :)

[–] [email protected] 22 points 1 year ago (4 children)

@Matriks404

I pray that all those extra lines are comments.

[–] [email protected] 12 points 1 year ago

Removed unreadable // Added /* */ on their own lines with fancy design above and below comments

[–] Matriks404 3 points 1 year ago

Some of them, yes.

[–] [email protected] 1 points 1 year ago

ctrl+P > format.

Git explodes.

[–] [email protected] 15 points 1 year ago* (last edited 1 year ago)
[–] [email protected] 12 points 1 year ago

If GitHub's UI isn't saying "infinity files changed" you're not trying hard enough.

[–] [email protected] 10 points 1 year ago* (last edited 1 year ago)

By simply I thought you meant delete the project.

[–] [email protected] 9 points 1 year ago

Ahh, yes, tracked eight hours of refactoring today…

[–] [email protected] 6 points 1 year ago

I've done worse

[–] [email protected] 5 points 1 year ago

Brought in a feature from a fork of our engine at work the other day. 8000 additions and a bunch of deletions and fix commits.

And apparently that's a pretty small merge...

Took me days just to review it.

[–] RIP_Cheems 5 points 1 year ago

Pov: you find an image of a coconut in your code and try to remove it

[–] [email protected] 1 points 1 year ago

It's just code formatting, isn't it?