DEV Community

Discussion on: How to use the var keyword in Java? Example Tutorial

Collapse
 
abstratt profile image
Rafael Chaves

I'd question the practice of including the type name in the variable name. Good names denote role or purpose, not type.

In your example, it would matter what the data in the file is going to be used for (say, contentsToCompress, imageContents, dataToSort etc).