# Code comments

You don't need comments in the code.

Shapes, classes, call signatures are [self-documenting in TypeScript](https://thekarel.gitbook.io/best-practices/constraints/typescript). Clear names explain what is what. [Declarative code](https://thekarel.gitbook.io/best-practices/source-code/declarative) is easy to read and reveal the flow of control and data without the prose.

There is always a better way, then adding comments. Comments rarely solve problems.

The *only exception* to this rule is to add comments to a piece of code that is unexpected or misleading but not fixable for technical reasons (for example it's 3rd party API). If it's your code, fix it.

Not writing comments doesn't mean you don't share [helpful information](https://thekarel.gitbook.io/best-practices/source-code/thereadme) in its appropriate place.
