Let's take a look at a few generic tips for program design.
Tips for program design
The model-first policy versus the code-first policy
A well-designed model is half the work done. That said, the model is sometimes not very evident when you start writing the program. In such cases, you can break the rules and try out the code-first philosophy. The idea is to build your program incrementally from the ground up, refactor your code, and model, as your vision for the program becomes clearer.
Separating the model from the view
The need to separate the model or data structure...