Projects

BookDB – step 0.5: Modules AND Doctrine

Posted in Development, Projects, Tutorials on February 21st, 2010 by cristi – Be the first to comment

Ok, so, after half a week-end spent integrating Zend Framework and Doctrine, I finally did it, combining two of the countless blog posts that offer the “ultimate” guide into integrating Doctrine into the ZF.

My main issue was that I also wanted modules with my fries. So whatever I wrote in Step 0 is either incomplete or wrong.

I got modules working first. That wasn’t very hard.

read more »

BookDB – Step 0: Glueing stuff together

Posted in Development, Projects, Tutorials on February 20th, 2010 by cristi – 2 Comments

A

I have an idea involving a site about books. So I thought I’ll build it in small increments adding in all sorts of stuff I’ve been wanting to incorporate into the design flow: unit testing, ORM, automated deployment, getting rich etc.

As I’ve said before, I tend to waste my time from time to time and experiment with other languages/frameworks/technologies. I like to fool myself  I’m acquiring  skills, which will eventually end up in my CV, when I’m actually just de-stressing. Some people do yoga, I download and install django.

Django seemed nice, had nice automation tools to start your project, schema files, generates a basic admin that you can easily extend, has a large ecosistem of modules and applications. But then I realised the very same ecosistem is too new for me and getting this rather large project off the ground would take too long and I tend to give up if there is no quick reward, no satisfaction. I like to see stuff in the browser right away, I’ll reasd the docs after that. But I like the idea of having an ORM and schema files you can version, plus a tool to generate applications, models, tables etc.

I knew about the two big players in the php ORM world, Doctrine, used by the Symfony Project and Propel. I had used Doctrine and spent a week-end reading their docs and looking at examples before, on a small community site I had build using Adi’s framework (which will be the greatest php framework, but only after it reaches a number of 1000 complete re-writes so that it can incorporate perfection). So I chose Doctrine and Zend Framework. Zend also comes with PHPUnit. I’ll worry about Phing later, when everything works and there is something to move around in svn.

read more »