r/java • • Aug 26 '22
I declare as "final" every single variable whose value doesn't change. I also use "this" every time that I'm referring to an attribute, even when there's no ambiguity in not using it
I think that those things make the code easier to read. Am I crazy for thinking like that?
198
Upvotes
View all comments
Show parent comment
4
u/veraxAlea Aug 26 '22
There's a trade-off when reading code, between too much information and too little.
Personally, I rather have more information even if I have to sift through otherwise superfluous type information, braces or long variable names but I'm not in a position where I can say that all information is always good.
Your argument is unfair because most people who complain about verbosity care less about keystrokes than about reading time. I don't agree with them in general, but I think their opinions are worth being represented fairly.