1 comment

[ 2.8 ms ] story [ 14.9 ms ] thread
For 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.