What is good code? | Manual Testing

 Good code is code that works, is bug free, and is readable and maintainable. Some organizations have coding standards that all developers are supposed to adhere to, but everyone has different ideas about whats best, or what is too many or too few rules. There are also various theories and metrics, such as McCabe Complexity metrics. It should be kept in mind that excessive use of standards and rules can stifle productivity and creativity. Peer reviews, buddy checks code analysis tools, etc. can be used to check for problems and enforce standards.