News for hackers. Stuff that matters.
Re:Abandonware of the web: do you know that there is an HTML... by Sharlin on Saturday November 01, 2025 @10:12AM (#45781773)
It’s normal to use short names for things with short scopes.
Re:Abandonware of the web: do you know that there is an HTML... by foofoo12 on Saturday November 01, 2025 @10:38AM (#45781953)
Yes, 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.

Re:Abandonware of the web: do you know that there is an HTML... by Sharlin on Saturday November 01, 2025 @10:55AM (#45782111)
That’s a fair point.
Re:Abandonware of the web: do you know that there is an HTML... by NetMageSCW on Saturday November 01, 2025 @01:33PM (#45783532)
rowIndex isn’t that short.
Re:Abandonware of the web: do you know that there is an HTML... by bdangubic on Saturday November 01, 2025 @01:35PM (#45783565)
shortness is in the eye of the beholder… program with spring framework long enough and rowIndex sounds like abbreviation. :)
Re:Abandonware of the web: do you know that there is an HTML... by foofoo12 on Saturday November 01, 2025 @02:28PM (#45784044)

  RowIndexFactoryGeneratorService rowIndexFactoryGeneratorService = new RowIndexFactoryGeneratorService();
  RowIndexFactory rowIndexFactory = rowIndexFactoryGeneratorService.getTheFactoryOrSomethingIDontCare();
  RowIndex rowIndex = rowIndexFactoryGeneratorService.generateRowIndex();
Re:Abandonware of the web: do you know that there is an HTML... by foofoo12 on Saturday November 01, 2025 @05:55PM (#45785774)
We 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.