logoalt Hacker News

latexrtoday at 10:09 AM1 replyview on HN

Part of doing it well is adding comments as you add options. When I used vim, every line or block in the config had an accompanying comment explaining what it did, except if the config’s name was so obvious that a comment would just repeat it.


Replies

iainmerricktoday at 10:32 AM

That's a good call. It's a big problem for JSON configs given pure JSON's strict no-comments policy. I like tools that let you use .js or better yet .ts files for config.

show 2 replies