Should you comment your code? - Cracking the Java Coding Interview #javalanguage #javacoding
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
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: