Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
Frameworks 2.0
Subititled: “The Rise of ‘Burger King’ frameworks….’have it your way’”.
I am loving the new trend I’m seeing in a lot of the frameworks (both client- and server-side) I’ve been checking out lately. What I’m seeing is a move away from the monolithic, “do it my way or suffer trying to work around it” approach, towards more architectures that provide a more generalized, “less is more” approach, even to the point that some of the functionality and/or features of the “do-it-all” frameworks are being broken out into smaller, specialized bits that allow the developer to pick and choose between whichever approach best suits their style.
To me, the main benefit of the new trend is readily apparent: just as different individuals would write the same story different ways, the same goes for writing code. For one framework to dictate too much influence over too many aspects of an application, or even worse to make it difficult to extend or adapt to suit your needs, provides too much lock-in and and can hinder more than it’s trying to help.
On the flash/flex side, frameworks like RobotLegs , Cairngorm 3, Gaia, and even libraries like CasaLib provide example of this (ok, Gaia probably goes a little further as far as initial structure, but once you start developing it stays out of your way). On the backend, for php you have things such as Konstrukt, a “URI-to-controller-mapping” (i.e., REST) framework which handles “routing based on logic rather than rules”, and the Outlet and phpDataMapper ORM frameworks.
One thing about the above mentioned frameworks is that most, if not all, can be used in conjunction with each other (like so). If you don’t like the way one part does it’s job, you can more than likey swap out that part with a similar one without affecting the other parts of an application, provided you we good with encapsulation and keeping things pretty cleanly separated. This is not an insignificant side effect of the “less-is-more” approach, it’s the central theme. It’s having it your way.
| Print article | This entry was posted by rich on November 2, 2009 at 12:19 am, and is filed under Flex, flash, php. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 8 months ago
I liked this trend when I first saw it in the Ruby world, but I’m starting to have second thoughts. The problem with many frameworks is that they try to do too much. By wallowing you to change everything, they make the complexity such that it’s hard for the authors to debug every possible combination of settings and it can take longer to learn a framework than to write one.
I’m starting to feel that the achilles heel of frameworks is that they are too flexible. I’d rather have a simple, limited framework with a strong opinion and to either have to use it (the way it is meant to be used) or pick another.
about 8 months ago
Thanks, I didn’t know about RobotLegs – it looks interesting for small projects which needs a light footprint (how light are robotlegs exactly?) .. I’ll be sure to check it out