DEV Community

Discussion on: What's that piece of code that you have to Google *every time*?

Collapse
 
vtrpldn profile image
Vitor Paladini

Reduce argument order was a common search for me as well, but repeating "prev, curr, ind, arr" a million times eventually made me learn it 😄

Collapse
 
____marcell profile image
Marcell Cruz

"acc, item".. was the one that done it for me, I don't know why I always found it "prev" wierd, like, it's not the previous value is the accumulation of the previous values, I know that you can argue that "prev" means the previous returned value, but I always got confused because of this 😄 it's funny how much naming is important in programming and how different people have a different understanding of the names