I l @ ve RuBoard |
There are a couple of basic design principles you should keep in mind when creating your design. They will help you create a design that not only works, but is robust and elegant. The first is "Think, then code." Far too many people, when given an assignment, can't wait to start coding. But the good programmers spend some time understanding the problem and studying all aspects of it before they start coding. After all, if you are driving from San Diego to Chicago, do you jump in the car and head north-east, hoping you'll get there, or do you get out a map and plan your route? It's a lot less trouble if you plan things before you start doing.
The other design principle is "be lazy" (a.k.a efficient). The easiest code you'll ever have to implement and debug is the code that you designed out of existence. The less you do, the less that can go wrong. You'll also find that your programs are much simpler and more reliable. Design Guideline: Think about a problem before you try to solve it. Design Guideline: Be as efficient and economical as possible. |
I l @ ve RuBoard |