6 ways to write better code

There was an article linked from Digg posted up a couple days ago entitled “6 ways to write better code”. It’s pretty good advice (for the most part), so I thought I’d link it here. http://www.ibm.com/developerworks/linux/library/l-clear-code/index.html?ca=drs- Here are the recommendations of the author, along with my own comments: 1) Comment …

1.2 — Comments

A is a programmer-readable note that is inserted directly into the source code of the program. Comments are ignored by the compiler and are for the programmer’s use only. In C++ there are two different styles of comments, both of which serve the same purpose: to help programmers document the …