HTMLDoc – a standard for documenting your HTML(usehtmldoc.org)
usehtmldoc.org
HTMLDoc – a standard for documenting your HTML
http://usehtmldoc.org/
1 comments
Thanks for your thoughts.
While I certainly believe in self-documenting code where possible, I think there's a place for comments, and also for well structured comments.
I wouldn't recommend going haywire and commenting on every HTML element, attribute, etc., any more than I'd recommend using any other language facility or tool like a sledgehammer.
But that's not to say structured commenting isn't a useful tool for the right situations. I have found the JSDocs in the code-base of Angular and other libraries to be invaluable, on occasions where it wasn't possible to fully convey the meaning in pure code.
While I certainly believe in self-documenting code where possible, I think there's a place for comments, and also for well structured comments.
I wouldn't recommend going haywire and commenting on every HTML element, attribute, etc., any more than I'd recommend using any other language facility or tool like a sledgehammer.
But that's not to say structured commenting isn't a useful tool for the right situations. I have found the JSDocs in the code-base of Angular and other libraries to be invaluable, on occasions where it wasn't possible to fully convey the meaning in pure code.
edit: thinking deeper into this - this also conflicts with other bastardizations of html comments, used by some apparatuses (gulp initially comes to mind), which need specific, albeit semantically useless, comments as a "hook" (for lack of a better term) to distribute precompiled stuffs and such. Im not endorsing these prior bastardizations any more than I am condemning this idea, rather just pointing out that as well meaning it may have been to contrive this - to me at least, it reads as more shrapnel in a handgrenade.