3 ms·
Redundant Variables Are Pure Evil
- Arcten 11y agoFor the example in the article, I think I'm inclined to agree. However, with something like numIterations = 5 foo(numIterations) versus foo(5) I think adding that extra variable greatly improves readability by removing the step that requires jumping to the function signature to understand what the integer argument is doing.