|
|
|
|
|
by Vinnl
3073 days ago
|
|
If you can't see why a line of code is okay without looking at it, doesn't that mean that it might need a comment or something explaining why it is? As a corollary, when I ask a question in code review, I usually don't want it to be answered there - I'd prefer it to be answered in the code, if need be using a comment. |
|
This is why I hate implicit assumptions. If I need some special knowledge or some special assumption that is no where in the immediate vicinity of the code, then maybe your approach to the problem is flawed. Sure it'll work but good luck to future coders working with it