4 ms·
It’s normal to use short names for things with short scopes.
by Sharlin 1y ago
It’s normal to use short names for things with short scopes.
- foofoo12 1y agoYes, and the reason for why that's OK is that the context is just few lines. But this is borderline due to the amount of variables. In just 4 lines you have r, row, t, ri, l, i and c. The full variables names are so short anyway that personally I'd write them out. Code does evolve and there's a risk of this suffering as a result.
- Sharlin 1y agoThat’s a fair point.
- NetMageSCW 1y agorowIndex isn’t that short.
- bdangubic 1y agoshortness is in the eye of the beholder… program with spring framework long enough and rowIndex sounds like abbreviation. :)
- foofoo12 1y agoRowIndexFactoryGeneratorService rowIndexFactoryGeneratorService = new RowIndexFactoryGeneratorService(); RowIndexFactory rowIndexFactory = rowIndexFactoryGeneratorService.getTheFactoryOrSomethingIDontCare(); RowIndex rowIndex = rowIndexFactoryGeneratorService.generateRowIndex();
- foofoo12 1y agoWe might be able to use rowIx? Let's discuss it on the next Monday standup. Everyone will need to have an opinion, max 5 minutes per person.