Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
galaxyLogic
on Sept 22, 2022
|
parent
|
context
|
favorite
| on:
Learn how to unleash the full potential of the typ...
> You can generate documentation using comments (i.e. jsdoc),
So comments are a solution to something. Don't TypeScript programmers use them as well?
schwartzworld
on Sept 22, 2022
[–]
Sometimes, but as a last resort. I'd prefer types, tests and readable code over comments, and if I feel the need to leave a comments, I usually see that as a code smell
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
So comments are a solution to something. Don't TypeScript programmers use them as well?