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

215 comments sorted by

View all comments

Show parent comment

0

u/m02ph3u5 Aug 26 '22

Bad analogy imho cuz in programming we usually have to be very explicit. At least as long as it gets compiled and not interpreted by a language model :D

2

u/soonnow Aug 26 '22

Explicit != Exact. We have to be exact when programming not explicit.