名前付きブール値により、C++ のバグを防ぎ、時間を短縮できます
During a recent code review I found a hard to spot bug, a misplaced parenthesis in an if statement. I often employ a technique I call named booleans, which would have prevented this bug. It’s a simple technique, instead of a long if statement, give every comparison a seperate boolean variable with a descriptive name…