Simple No-Framework Object Oriented Multi-Layer MVC Application Example
Recently I’ve created the subj. It’s a memory game, written in pure PHP/HTML, called “PHP Memory”.
What was important for me to demonstrate is the next principles:
- Even if you don’t use a framework, you should write modular code with appropriate architecture.
- Despite that, the application design and code should match its required functionality with no overhead of unneeded patterns and abstraction or preparations for future enhancements, unless they’re planned.
- Nevertheless, the code should be readable and maintainable.
- The bottom line is – developing a framework versus developing an application are completely different tasks. The strategy and tactics should vary very much. Of course, developers should learn from the frameworks source code, since they accumulate collective experience of great coders, but the ideas implemented in frameworks sometimes not required or even harmful while developing an application.
The demo and source code can be found here.
Advertisement
Excellent post! That’s the way I always thought. Uneeded design patterns may increase coding efforts and slow down the development. Use only what is needed, and when it seems that it will boost later maintenance.
luizzeross
2011-08-30 (August 30) at 03:39:35