\documentclass{article}

\usepackage[a4paper]{geometry}

\title{ Ditching ORM }

\author{ Sam Wilson }

\date{ 2022 April 14 (Thursday), 1:51AM }

\begin{document}
\maketitle
\tableofcontents

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 \emph{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 \texttt{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.

\end{document}
