4 ms·
> there isn't many opportunities to explain yourself in the code Can't you include comments in your code?
by tuukkah 4y ago
> there isn't many opportunities to explain yourself in the code
Can't you include comments in your code?
- ehnto 4y agoI've never seen it done in infrastructure as code files, but I probably would if I were writing it. Or I'd at least include some explanation in the readme.
- rmetzler 4y agoI do it all the time in YAML config and HCL, especially stuff which is not obvious. That's the main benefit of YAML over JSON, to be able to communicate to human readers through comments. Some stuff, like which CIDRs are necessary for which connection, are only obvious in the moment you write it, not 1 or 2 years later or for another person who joins your project next week.