3 ms·
Solving spaghetti PHP in spaghetti SQL in spaghetti HTML: 1. Learn how MVC works. 2. Write a basic MVC framework. 3. Zip it up, put it aside, and learn Symfo
by markbao 18y ago
Solving spaghetti PHP in spaghetti SQL in spaghetti HTML:
1. Learn how MVC works.
2. Write a basic MVC framework.
3. Zip it up, put it aside, and learn Symfony, CodeIgniter, etc.
(Writing your own framework is an incredibly good learning experience.)
Spaghetti code is solved (mostly) by structured organization, ORM, views that simply display data, and the separation of the MVC parts.