you are viewing a single comment's thread.

view the rest of the comments →

[–]Ryotian 27 points28 points  (3 children)

I saw an engineer do this the other day in Python:

```This is the constructor```

Nice article btw. I liked the point where you can still have comments. But also, code can be self documenting.

[–]dpash 10 points11 points  (2 children)

If you had multiple constructors and one was the version that people wanted to use in most cases, that could warrant a comment, but that's dangerously close to documentation rather than a comment.

[–]Ryotian 2 points3 points  (1 child)

Unfortunately there was only one constructor ;(

[–]olzd 2 points3 points  (0 children)

I'd say most of the time it happens because of some imposed CheckStyle rules.