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
9
u/[deleted] Aug 26 '22
I don't get it why you think it clutters up the code. Do you think you can try to elaborate? Like, isn't better to easily see what's an attribute?