Do I really need a framework?
Two weeks ago when I start searching for PHP framework that I can use for my web project development, on my quest I land to a three different framework witch CakePHP, CodeIgniter and DooPHP both of them promise different features that you are going to be excited.
In the long run of review and testing of these three I start to ask some question and land to a different blog and forum to answer my quest.
1.Do I really need a PHP framework?
2.Its PHP framework can handle out of the box programming needs and all business requirements?
All though it’s a long debate user and programmer has different point of view pros and cons and decide to list down using framework advantage and disadvantage
Advantage of Using Framework
- You don’t even have to write OO code if you don’t want to.
- Provide a solid structure for your code.
- Extra functionality that would be much harder to replicate on its own.
- MVC Structured code (Model-View-Container ).
- Enforcing of good coding standards.
- Pretty URLS.
- Less time coding.
Disadvantage of Using Framework
- Hide the original syntax of PHP
- Slower then a simple php.
- It’s heavy, more compiling time
- Framework is like third party software
- Limited resources & support
- Framework is for weak Programmer
My Conclusion
For small project use custom PHP toolkit is good, for big project I suggest to carefully review and decide if you going to use framework. Instead of reading its feature and promise go to forum and read all the issued raised so you can get an idea of what possible problem that you may encounter.
If your PHP project will handle out of the box programming needs and ideas I suggest don’t use framework rather use framework design carefully your project needs and develop a clean and secure object oriented code.
Because framework are built in solution for your project needs it’s doesn’t mean that It can handle all possible business and project requirements.
Remember that framework is also made from programming native language, I don’t want to say to create you own framework but of course you can design framework for you own project specific needs, it will help you become more strong in programming analysis and design.
Also remember you can also design your project with Pretty URL and implement standard coding in the team.
Relying on framework will only make you idle and dependent on framework, I remember the time when one of my teams mate approach me and said that his group can’t proceed to their task because there is no available library for their needs and they found one witch is limited in function and feature and my answer to him is simple crate your own library.
But overall it’s still depend on your needs and what generation programming language you are.
4 Comments
I really don’t like frameworks…Its slower, and the codes are known to others..I usually creates my own framework..
nice post pre..^^
Thanks for dropping by! Actually I planning to work on small framework for specific task like TinyMCE editor, phpmail and yes for RoR.
If you’re comfortable with RoR, I think you might like to explore Kohana PHP Framework
Yes, you are right its look you need to study new programming language depends on what framework you’re going to use and what the framework standard. But they are still good in other side.