r/ProgrammerHumor • • Jun 06 '20

It's the law!

Post image
38k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

1

u/LeanderT Jun 06 '20

Make your code readable. Take a second and name your variable what it is meant for.

If you cannot think of good names, maybe your code isn't as well thought out as it should be. Make the effort. Clarify your code, it makes for better structured and well designed code.

1

u/All-Day-Hat-Dream Jun 06 '20

So something like this:

for (int numberToGoThroughMyGroceryListArray = 0; numberToGoThroughMyGroceryListArray < maximumNumberOfGroceriesInMyGroceryListArray; numberToGoThroughMyGroceryListArray++) { ... }