Should programmers use boolean variables to “document” their code?
Splitting an expression that’s too nested and complicated into simpler sub-expressions assigned to local variables, then put together again, is quite a common and popular technique — quite independently of whether the sub-expressions and/or the overall expression are boolean or of just about any other type. With well-chosen names, a tasteful decomposition of this kind … Read more