8
2
1
0
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.
15
u/orhnofficial Nov 17 '22
Same as 2 days later :/