Code comments are generally discouraged — if code needs comments to be understood, it lacks readability. The focus should be on writing self-explanatory code instead. Javadoc is distinguished from inline comments: it is proper documentation, should be precise, include usage examples, and be reviewed during code reviews. Inline comments tend to become stale and misleading as code evolves. Exceptions exist for complex algorithms, such as ConcurrentHashMap or ConcurrentSkipListMap implementations.

1m watch time

Sort: