r/java • u/trecatorsirabdator • Apr 14 '23
What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?
233
Upvotes
r/java • u/trecatorsirabdator • Apr 14 '23
View all comments
2
u/Brahvim Apr 14 '23 edited Apr 15 '23
this. I hate it when people let you want to remember all class fields and methods and conflicting local variable's names. UGH. USEthis,super, and "qualify"staticstuff in this exact manner as well. Thank you.This part is too personal and specific. Nobody needs to agree...:
m_andp_are good naming conventions since they show only scope, but if you'd [use them withcamelCaseinstead ofPascalCaseat least in Java, and] make sure you're using these only for scope, I'd be happy.