View Single Post
Old 04-19-2009, 08:34 AM  
nation-x
Confirmed User
 
nation-x's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Rock Hill, SC
Posts: 5,370
Quote:
Originally Posted by blazin View Post
What's the best PHP framework?
It depends on what you are trying to accomplish... if you want fast code... NONE. 99% of frameworks are slower than shit and personally, I think they complicate the development process more than they benefit. Frameworks are the tools of lazy programmers.

To clarify, any developer worth more than a penny should already have developed his own toolset of objects. I have my own and can develop complex/scalable applications very quickly because of it.

I could give a fuck less if another programmer thinks that developing apps in the latest OOP style using abstracted classes (like Zend Framework) is a good idea... I know from experience that apps built in that fashion run like shit. There is much more to consider, when building an app, than how fancy your code is.

Here is a super simple example of a framework I wrote and use alot. The one I actually use is alot more robust and secure... but, if you consider what it does, you will get the idea behind how I code applications.

http://www.phpclasses.org/browse/package/4963.html

Using this simple framework, you can build apps with SE friendly URLs where each URL is a seperate module, class and views. It is a little different than the MVC type of framework because I don't really like the Model/Controller model like you find in Zend Framework, Cake or Symphony. I also don't like template classes like Smarty, so I just use php in my templates. The simple beauty of this method is that, if I want to add new functionality, I don't even have to mess with any of the existing code except the bootstrap (index.php), where I add the includes. All I need to do is create a module class (memberModule.php), a class to handle functionality and my view templates. Any classes that I define in the bootstrap (like a database object), are available to the module... So I have a very scalable solution right from jump.
nation-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote