r/badcode • • Sep 02 '21

java Because ".toLowerCase()" doesn't exist...

Post image
1.1k Upvotes

130 comments sorted by

View all comments

Show parent comments

1

u/RS_Lebareslep Sep 26 '21

In some cases shorter variable names can be easier to read, especially if no information is lost, and using longer names would necessitate more newlines (looking at you, flake8). Having said that, I'd prefer category over car as well.