Sometimes I wonder, what if the machines we send out into space had feelings like we do. Would we still treat them the same way? [xkcd]
I started to use Doctrine this year, and I have to say that I think I prefer it over Propel now on how you construct queries. The syntax is a little cleaner as well in my opinion. Here is an example of both syntaxes to retrieve a set of articles from a database which match a few criteria.
$criteria = new Criteria('article a'); $criteria->add('a.status', 'active'); $criteria->add('a.type', 'news'); $criteria->addDescendingOrderByColumn('a.id');
$query = new Doctrine_Query::create() ->from('article a') ->where('a.status = ?', 'active') ->andWhere('a.type = ?', 'news') ->addOrderBy('a.id DESC');
I also find the Doctrine way or building the query easier to read compared to the Propel one.
Once I’ve worked with Doctrine some more, and built some more complex queries I’ll add some more thoughts.
Last night I was introduced to a very nice cross-browser tool produced by Adobe called Adobe® BrowserLab. This tool allows you to test your website in multiple browsers on multiple OS’s without the need for virtual machines, Adobe does that for you.
The way it works is to take a screenshot of your chosen URL in several different browsers and then allow you to compare each image, and see how your pages differ from one browser to another. This allows you to spot any possible bugs or errors. It does not allow you to test the interactiveness of your code though as it only provides static screen shots. Though it is still a very cool idea.
Hello and welcome to http://www.carlcasbolt.co.uk
This is the personal website for Carl Casbolt. A Web Applications Specialist living and working within the South East of the United Kingdom.
Currently working at IPC Media in London as a Lead Backend Developer. Specialising in technologies including LAMP, PHP, MySQL, REST, Solr, MongoDB, API’s, Mobile Websites and Search technologies.