Write self-documenting JavaScript with Regent
Self documenting JavaScript is good for you. We’ll get to how in a second, but first let’s define a few terms. By self documenting code I mean code that is so clear you don’t need to document it. I’m not talking about using JSDoc, or inline comments, or anything else that requires extra overhead to maintain.
To be clear, we’re not full-stop against traditional documentation, but I do submit that this pattern can be self documenting, and removes the need for…