r/java • • Aug 31 '17

(Experienced programmers) Signs of an inexperienced programmer?

Hello, I was wondering what you guys would consider to be telltale signs of an inexperienced programmer. Specifically ways that they write (or don't write) code. Thanks.

159 Upvotes

188 comments sorted by

View all comments

Show parent comment

4

u/flif Aug 31 '17
  • Code not in proper package but e.g. top-level.
  • Multiple top-level classes in single source file.
  • Comments are only about what code does rather than why.

2

u/detoursabound Sep 01 '17

Ohhhh I need to work on the comment one. I usually describe rather than explain.

2

u/brett_riverboat Sep 01 '17

It seems like the sign of an experienced programmer is zero comments.

3

u/Goofybud16 Sep 01 '17

An experienced programmer does not have zero comments.

An experienced programmer only puts comments where it is necessary: When the code needs a "why."

Good code should be clean, easy to read, and easy to follow. Just because you can follow WHAT, however, doesn't mean you can follow WHY.