|
|
|
|
|
by nghst
4467 days ago
|
|
I think the occasional "header" comment is useful, even in cases where the code is obvious, i.e. // do blah blah
obvious_thing;
obvious_thing;
obvious_thing;
obvious_thing;
// do something else
obvious_thing;
obvious_thing;
obvious_thing;
obvious_thing;
Even though none of the lines really need documentation, having the comment ensures that you can quickly jump in when you come back later.This is really useful in something like drawing code. |
|