I’m honestly prefer short but (usually) complete words. Somewhere along the line I realized that being explicit really helps when you need to change it later.
I’m honestly prefer short but (usually) complete words. Somewhere along the line I realized that being explicit really helps when you need to change it later.
I generally use ‘count’ for a counter and ‘idx’ for index.
I’m not using C or Java languages though - if I were I would probably go with the more classic terse approach.
Also, if I’m reviewing a PR and I have to load more of the diff context to understand what a variable represents, then that variable has the wrong name.