Frameworks - Yes or No

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Sat Aug 31, 2013 8:10 pm

I would say that frameworks is the road that you have take in majority of the cases. I haven't used CakePHP but I have a used Codeigniter.

The good thing about frameworks is that it is "ready made". You do not have to reinvent many things like MVC, paging, speed of access, having a separate class for Calendar, session management, search engine friendly urls, better security, xss filtering etc etc. When you have all these tonnes of benefits "ready made" for you, I think it is better to use frameworks.

Another good thing that I liked about frameworks (especially when I using Codeigniter) is that all the members of our coding team were writing nearly the same style of code. If you are not using frameworks then one of your team members will make a database call in one way, another person will write it in another and finally when there is a bug it is hard to debug and you start pulling your hair.

But there will be cases where a framework is not the right solution. In case of an academic project (to add a few numbers or to do a few calculations) or to do a few statistical analysis etc , there is no need to use a framework. Also, if you are very strict about having your own code for various reasons, a framework need not be used as long as you have plenty of resources to write your own code.

Post Reply