3 ms·
True, but Unnecessary Variables is also a code smell, and a worse one to me, because it increases cognitive load in larger functions. In the toy function given
by KingMob 11y ago
True, but Unnecessary Variables is also a code smell, and a worse one to me, because it increases cognitive load in larger functions.
In the toy function given, it doesn't really matter, but in general, I think that people should aim to code for clarity, not ease of debugging.