this post was submitted on 11 Sep 2023
207 points (95.2% liked)

Programmer Humor

32410 readers
1 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 14 comments
sorted by: hot top controversial new old
[–] Wolfizen@pawb.social 48 points 2 years ago (1 children)

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

[–] Rooki@lemmy.world 25 points 2 years 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. :)

[–] EpicFailGuy@kbin.social 21 points 2 years ago (4 children)

@Matriks404

I pray that all those extra lines are comments.

[–] mb_@lemm.ee 11 points 2 years ago

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

[–] Matriks404@lemmy.world 3 points 2 years ago

Some of them, yes.

[–] fushuan@lemm.ee 1 points 2 years ago

ctrl+P > format.

Git explodes.

[–] tias@discuss.tchncs.de 12 points 2 years ago* (last edited 2 years ago)
[–] Eufalconimorph@discuss.tchncs.de 11 points 2 years ago

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

[–] iHUNTcriminals@lemm.ee 10 points 2 years ago* (last edited 2 years ago)

By simply I thought you meant delete the project.

[–] CommunicationOk3492@feddit.de 9 points 2 years ago

Ahh, yes, tracked eight hours of refactoring today…

[–] fiah@discuss.tchncs.de 6 points 2 years ago

I've done worse

[–] RIP_Cheems@lemmy.world 5 points 2 years ago

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