r/programminghumor • • Nov 17 '22

…²

Post image
492 Upvotes

7 comments sorted by

15

u/orhnofficial Nov 17 '22

Same as 2 days later :/

3

u/EasilyRekt Nov 17 '22

Same after a lunch break.

8

u/InsurectionistCommie Nov 17 '22

Lol me after I take a nap and wake back up.

2

u/PM_YOUR_SOURCECODE Nov 17 '22

Comments are for pussies

1

u/[deleted] Nov 18 '22

Yeah. Me too.

0

u/[deleted] Nov 17 '22

[deleted]

1

u/PM_ME_UR_CEPHALOPODS Nov 17 '22

If the code it's not self-explanatory, it's bad code.

Maybe ifs the life person using salad words some think know different competency in languages across living bodies can help comments language

1

u/MCWizardYT Nov 18 '22

Small sections of the code may be legible but if your code is spread across 50 to a hundred files it's good to have some form of documentation.

Especially if you know that api will not change much.

The Math.random() method in JDK 7 is a good example. It explains exactly what behavior to expect when you call it.

Or just have a single line explaining how it is used, like the render method of this game. Since the game has a lot of source files, following the logic with just your eyes when you are just learning the codebase can be confusing, even though the method itself is not that complicated.