This article by Bill Sourour would have been extremely helpful when I was starting out.
Stop me if you’ve heard this one before…“Good code is self-documenting.”In 20+ years of writing code for a living, this is the one phrase I’ve heard the most.It’s cliché.And like many clichés, it has a kernel of truth to it. But this truth has been so abused that most people who utter the phrase have no idea what it really means.Is it true? Yes.Does it mean you should never comment your code? No.In this article we’ll look at the good, the bad, and the ugly when it comes to commenting your code.For starters, there are really two different types of code comments. I call them documentation comments and clarification comments.
No comments:
Post a Comment