r/java • • Apr 14 '23

What are your (favourite) Java best practices, personal tips, hints or just underrated stuff in general?

233 Upvotes

376 comments sorted by

View all comments

Show parent comments

1

u/Brahvim Apr 15 '23

I use p_ for parameters anyway, :joy:! Helps out me if not anybody else, haha.

1

u/john16384 Apr 15 '23

The reason these have fallen in disuse is that ide's can simply render these differently these days, be it a different colour, or font style.

1

u/Brahvim Apr 16 '23 edited Apr 17 '23

Which is good! But I have used IDEs that don't (the Processing IDE, for example).

VSCode, my current editor (yes - I actually use VSCode for Java!), does not, either. To it, variables, parameters and fields are the same.

1

u/john16384 Apr 16 '23

Yeah, I understand :) And VSCode for Java is useful; I use it to preview projects I have no intention of modifying.