The Principles of Good Programming

DRY - Don’t repeat yourself. - Probably the single most fundamental tenet in programming is to avoid repetition. Many programming constructs exist solely for that purpose (e.g. loops, functions, classes, and more). As soon as you start repeating yourself (e.g. a long expression, a series of statements, same concept) create a new abstraction. Abstraction Principle - Related to DRY is the abstraction principle “Each significant piece of functionality in a program shou…

Read more...