Random thoughts about Software and other stuff...
I don't agree at all. Non-trivial code needs comments. Especially if you are working with multi-threaded code and concurrency issues (and, let's face it, today, who isn't?).
My opinion is that if one writes a method that has a few "Stanzas" in it like.Grab the door nobturn itpull the door openenter the roomRather than having comments that say those things with code that follows each comment one should have methods with those names. See my blog on "programming via wishful thinking" for more detail. If one has a coding style where they highlight lock holders via a comment I have no issue with that
Post a Comment