"So let's simplify code a bit today..."

3 years ago by Matriks404 to c/programmerhumor

Wolfizen 50 points 3 years ago

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

path: 0 3336351, hotness: undefined, score: 50, children: 1
Rooki 28 points 3 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. :)

path: 0 3336351 3338152, hotness: undefined, score: 28, children: 0
EpicFailGuy 22 points 3 years ago

@Matriks404

I pray that all those extra lines are comments.

path: 0 3333734, hotness: undefined, score: 22, children: 5
mb_ 12 points 3 years ago

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

path: 0 3333734 3334498, hotness: undefined, score: 12, children: 0
Matriks404 3 points 3 years ago

Some of them, yes.

path: 0 3333734 3335272, hotness: undefined, score: 3, children: 0
fushuan 1 point 3 years ago

ctrl+P > format.

Git explodes.

path: 0 3333734 3389606, hotness: undefined, score: 1, children: 0
Rooki -8 points 3 years ago

Then the code is noisy. And that isnt simplyfied it is made noisy/clustered up.

path: 0 3333734 3338174, hotness: undefined, score: -8, children: 1
Zron 9 points 3 years ago

Your username is very fitting

path: 0 3333734 3338174 3343443, hotness: undefined, score: 9, children: 0
tias 15 points 3 years ago

path: 0 3350098, hotness: undefined, score: 15, children: 0
Eufalconimorph 12 points 3 years ago

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

path: 0 3348783, hotness: undefined, score: 12, children: 0
iHUNTcriminals 10 points 3 years ago

By simply I thought you meant delete the project.

path: 0 3333269, hotness: undefined, score: 10, children: 0
CommunicationOk3492 9 points 3 years ago

Ahh, yes, tracked eight hours of refactoring today…

path: 0 3333153, hotness: undefined, score: 9, children: 0
fiah 6 points 3 years ago

I've done worse

path: 0 3339819, hotness: undefined, score: 6, children: 0
RIP_Cheems 5 points 3 years ago

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

path: 0 3390951, hotness: undefined, score: 5, children: 0
boletus 5 points 3 years 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.

path: 0 3357691, hotness: undefined, score: 5, children: 0
DmMacniel 1 point 3 years ago

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

path: 0 3343520, hotness: undefined, score: 1, children: 0
programmerhumor
programmerhumor

@lemmy.ml

login for more options
43801
1628
1576

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

go to feed...