by Cedric Dugas on January 18, 2011
I love doing HTML/CSS/Javacscript, but what happens when you want to create a project that WordPress can’t handle? Beside finding someone who can do it I mean.. Well you have to learn new stuff and this is how I immersed myself in more complex back-end work.
Making a framework choice
Where do I start? like anyone I guess, I check for the best framework to learn. Obviously I am not going to create my own MVC framework, some of the best php guys are already doing that (And also I suck at doing php). And I am not going to use a CMS, not enough barebone to do an app, less extensible and also more security problems (plus I hate Joomla and Drupal). So I browse the web, django, ruby on rail, Zend, Symfony, so much languages and frameworks, so much choice!
In the end I decided to stay with php, I already know php a bit and learning an entire language felt like a waste of time, I ni mi ni ma nimo, I stop on Kohana and Symfony.
Kohana feels like jQuery I would say, I can do some basic stuff quite easily.
Symfony, feel a bit like Dojo, it’s effing huge, and not as easy as Kohana.
That being said, Symfony had a lot of features I wanted, a bigger community and a better documentation, so in the end, Symfony won my challenge. Diving right into it, I start the Symfony in 24 days book. Okay, so yeah, setting up environments check, learning a bit of the ORM check, learning a bit of the command system check, Okay my head hurts now.
Don’t even get me started with the Symfony form framework, I really hate how they automatically generate your forms. That being said, it still is really useful, the idea is to generate a form linked to your database table, so this make it really easy to save new entries.
In fact it look like this: $form->save(); .. yeah that easy. Like I said I am not a fan of how they automatically generate the form with table though, but you can mold it as you want, and generate each label and input separately.
My head is being pounded
You really can’t be efficient when you’re learning, getting stuck each day at doing something that should be easy.
Who knew doing back-end was so hard! You got to manage Cron, sql, orm, MVC frameworks, routing… I feel like I should have started learning this a long time ago. When I was in school has a Multimedia Integrator I learned ASP (not .net), a pure waste of time. Now they learn PHP but I’m not even sure if they even have any remotely idea of what MVC mean, which is bad, as most of everything they do will be in front-end developer will be in a similar environnement.
Probably the best thing about Symfony is it’s documentation. You get a crazy amount of information from the get-go. With one of the free book, you can create a job posting website in 24 days. I used a lot of information from this book to create my application.
It really give you a good feel on how the anatomy of any application should be like using Symfony.
Symfony as a framework of choice for front-end developers?
I found in Symfony what I guess most people found in Ruby on rails from what I read on the web. The framework really give you the tools you need to create web application, so you can really concentrate on your app instead of focusing on integrating swift mailer, managing your database relations and others. It really gives you a big abstracted layer of everything you will need to create your next thing.
But I also saw a lot of front-end developers on twitter doing ruby and django, I guess it is a matter of taste after all…