Hacker News new | ask | show | jobs
by jurgenburgen 98 days ago
Ultimately the code is the documentation.
2 comments

Code can only ever document "what" by definition, never "why". If it could document "why", then no computer programmers would exist. So, we have to supplement the "why" using natural language. There's a 100% loss conversion there when we convert it to code.
This is correct. Comments serve a purpose too, but they should only be used when code fails to self document which should be the exception.