3 ms·
A little micro-technique compatible with the "a good name is the best documentation" rule; create temporary well named boolean variables to "document" your bran
by billforsternz 2y ago
A little micro-technique compatible with the "a good name is the best documentation" rule; create temporary well named boolean variables to "document" your branching logic. A toy example;
bool in_range = begin<=idx && idx<end;
if( in_range )
{
do_something();
}