No one else on your team is going to stick to that. Plus your code might not throw an error if you accidentally use 'i' or 'iii'. Search for 'for' or 'for (' or ' for ' etc - whatever makes sense in your language. Use the RegEx or boolean logic that your search provides if needed.
Personal preferences. I don’t like digits in variable names for readability. It’s faster typing two of the same character Normally a block of code doesn’t use more than three or four iterations so ii, jj, kk would suffice. And declare all variables.
View all comments
2
u/[deleted] Jun 06 '20
Pro tips: Use ii instead of a single i. makes finding them so much easier if you e.g. would need to rename your variable.