News for hackers. Stuff that matters.
Re:Things Every Programmer Should Know by base698 on Friday September 20, 2013 @10:07AM (#6417753)
Comments also frequently repeat what is obvious and don't illuminate the bigger picture. Ie a Pythagorean theorem function would have a comment about squaring numbers and adding them instead of for what it's used in practice.
Re:Things Every Programmer Should Know by ygra on Friday September 20, 2013 @01:25PM (#6419142)
By extension that's something that often goes for documentation comments (Javadoc, doxygen, etc.). When reading those I find it not really useful to learn that the frobFoo(Foo f) method frobs a foo and leaving the use of that method, what frobbing is and what a Foo is out of that documentation. Figuring out how to use something larger is much easier when classes come accompanied by usage samples and some notes about how they fit into the larger picture.