Is there a variable name you overuse when programming? For me it's `chunk`. Love a variable named `chunk`!
-
-
When there's a more specific name that could help the reader understand what the code is doing, I agree, "data" is a bad choice. I'm ok with it when there actually isn't a more specific name because the function is generic (and short).
-
In that case save eyestrain and use "d".
End of conversation
New conversation -
-
-
Hi Nick, I want to become a better programmer. Are there any general programming books you would suggest that can help improve logical thinking?
-
Get a book that focuses on algorithms, using a relatively simple subset of a commonly used programming language. Type in and run the examples yourself. Avoid using libraries you have to download, and avoid cutting-and-pasting online examples like the plague.
-
Thank you very much!
- 1 more reply
New conversation -
-
-
I still think i is the best name for a numeric loop variable
-
Don't forget j for the inner loop. Or k when you get really adventurous

-
Once I was down to m, but that was decades ago in C. Nowadays I reuse the same one letter name in stacked lambdas in Rust.
End of conversation
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Is reusing"temp" always wrong?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
argh, C Commandment #9.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Depends on the scope
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.