Re: logging-log4j2 git commit: In-line mutable local vars.

2018-01-29 Thread Remko Popma
On Mon, Jan 29, 2018 at 7:39 AM, Remko Popma wrote: > I actually coded it this way deliberately. > The local variables clarify the intention and make the code self > documenting. Without the variable the reader needs to spend effort to > understand the calculation on the right. > > I got this tec

Re: logging-log4j2 git commit: In-line mutable local vars.

2018-01-28 Thread Remko Popma
I actually coded it this way deliberately. The local variables clarify the intention and make the code self documenting. Without the variable the reader needs to spend effort to understand the calculation on the right. I got this technique from Kent Beck’s Implementation Patterns and Robert M