Sam Wilson's Website

T2033: PHP

RSS feed icon. RSS feed for the "PHP" tag

  1. By .

    I’m working on a little side project at the moment (a PHP web app), and have decided to not use an ORM. It’s so great to be writing SQL again! Things are much faster to build and simpler to reason about. I know I could do everything I’m doing with the ORM, but I always get confused about how things are “supposed” to be done, and with straight SQL (or nearly straight: I’m using Doctrine’s DBAL which has lots of useful things like insert() etc.) I can just write what’s required. The query log is so much cleaner, and every query in it is meant to be there. Maybe I’m pushing too much filtering and ordering etc. to the database, but it does feel like that’s where it belongs. Why am I feeling defensive?! :-) Maybe I’m just another old-school PHP developer now, nostalgic for 2005.