Chris Tankersley

  • Home
  • About
  • Portfolio
  • Projects
Twitter RSS

The MicroPHP Manifesto – What People Are Overlooking

Posted on January 4, 2012 by Chris
No CommentsLeave a comment

Yesterday, Ed Finkler (aka Funkatron), posted a blog called ‘The MicroPHP Manifesto,’ in which he describes why he thinks people need to get back to basics and look at small, concise libraries. He likened the current trend of PHP turning into Java to rock n’ roll drum sets. He compared the massive drum sets of prog rock bands like Rush (representing massive frameworks) to the simple ones of bands like Black Flag (micro frameworks). Many people seem to be focusing on this analogy instead of what Ed was trying to get at.

In most of the conversations about Ed’s argument, people begin to argue over why the full stack frameworks are the best way to go. Many people skip over this part: “It doesn’t mean this approach is bad, per se. But when I see it, I have a visceral negative reaction. My brain screams FUCK. THAT. SHIT. I can’t do it. I don’t want it. And I don’t think we have to do it this way to do cool things and build awesome stuff.” The first line sums it up – “this approach isn’t bad, per se.”

Take a step back, and look at your project. Do you really need a full stack framework, or do you just need a few parts like routing, DB, and templating? For example, my wife needed a website for the side business she has for baking. I could have used WordPress, but the site is basic and doesn’t need everything that WordPress provides. It also didn’t need all the stuff that Zend Framework comes bundled with. I wanted a site with a few tools. 30 minutes later I put together a site using Slim, Twig, and Swift Mailer.

“I don’t want to be the prog rock superstar, writing a pretentious rock opera. I want to play shitty power chords in a punk rock band that plays shows in a VFW lodge with no stage, and leaves you so fucking pumped that you go out and form your own band. That’s the coder I want to be.” Sometimes, as developers, we need to think about getting the job done. Yes, sometimes I want to write that epic rock opera that is a marvel of code engineering, something that will stand the test of time long after I’m gone. Other times I want to just get the friggin’ job done. Those are the times I don’t need Zend Framework and the magic that comes along.

Yes, that little side project might come to a point where the micro framework is becoming a hurdle. If your code is well thought out and decoupled it shouldn’t take long to port your code to a full stack framework. Most of the projects that I’ve done that graduated from a micro framework to a full stack went smooth. I can’t say the same thing for the full stack stuff that I’ve done.

I think the big point is, start by looking at your project. Don’t just assume you need to use Zend Framework, symfony, CakePHP, or any of the full stack frameworks. Sometimes you need all that, but do you always? Look at the tools that are being compiled on microphp.org and see if they fit the bill instead of a full stack framework.

Categories: PHP | Tags: microphp, slim, swift mailer, twig, Zend Framework

About Chris

View all posts by Chris→
Notice: This work is licensed under a BY-NC-SA. Permalink: The MicroPHP Manifesto – What People Are Overlooking
Interview on 7php.com
Building Facebook Apps – The PHP SDK

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*


question razz sad evil exclaim smile redface biggrin surprised eek confused cool lol mad twisted rolleyes wink idea arrow neutral cry mrgreen

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

  • Search

  • Archives

    • February 2012
    • January 2012
    • September 2011
    • August 2011
    • April 2011
    • December 2010
    • November 2010
    • September 2010
    • August 2010
    • May 2010
    • April 2010
    • February 2010
    • January 2010
    • November 2009
    • October 2009
    • September 2009
    • June 2009
    • May 2009
    • February 2009
    • January 2009
    • November 2008
    • October 2008
    • July 2008
    • May 2008
    • February 2008
    • December 2007
    • October 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
  • Categories

    • Code Releases
    • Doing Development
    • Hardware
    • IBM i
    • JavaScript
    • Joomla!
    • MySQL
    • Non-Programming
    • Operating Systems
    • Personal
    • PHP
    • Programming
    • Project Management
    • Reviews
    • Servers
    • Software
    • This Site
    • Tutorials
    • TWS Software
    • Uncategorized
    • ZendCon 2010
© Chris Tankersley. Proudly Powered by WordPress | Nest Theme by YChong