Hacker News new | past | comments | ask | show | jobs | submit login

> Why must that documentation go inline with the code?

Discoverability and context would not be nearly as useful, to start. Why you need to ask the question, as if there is no suitable answer, is suspect of a thoughtless conclusion.

In the late 80s, there was an idea floated that every file could have a sister file with comments, such that they would not need to be parsed/discarded by a parser. This would aid in generating documentation, among other tooling. When I was starting out, I expected this to take hold, but it never did.

> There are so many better ways to document design and implementation decisions that don't involve embedding English into source code files

I don't think that's been demonstrated.




>In the late 80s, there was an idea floated that every file could have a sister file with comments, such that they would not need to be parsed/discarded by a parser. This would aid in generating documentation, among other tooling.

This sounds a lot like the director's commentary tracks on DVDs. No one ever watched those, and the sister-comment-file would flop the same way if anyone really tried it. A separate file is fine for documenting overall design, but for detailing sections of code, the commentary needs to be close to it, where people will see it.


> No one ever watched those, and the sister-comment-file would flop the same way if anyone really tried it

Not if it was integrated with an IDE such that you could expand it shrug




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: