Categories
Technical

What is Closing Brace Comments ?

Closing Brace Comments

try {
while ((line = in.readLine()) != null) {
...
} // while
...
} // try

Although this might make sense for long functions with deeply nested structures, it serves only to clutter the kind of small and encapsulated functions that we prefer.

Attributions and Bylines

/* Added by Rick */

Source code control systems are very good at remembering who added what, when. There is no need to pollute the code with little bylines.

source : https://medium.com/@mosquitolwz/clean-code-quotes-4-comments-2de28ba0a6e2

Leave a Reply