News for hackers. Stuff that matters.
Re:Phlex for Rails Emails: Action Mailer Without ERB by MyOutfitIsVague on Monday March 03, 2025 @11:11AM (#43243164)
HTML, yes, but SQL has another major problem in that it's not composable. HTML can be broken into fragments, but it's very difficult to work with and write reusable SQL in a modular way. CTEs and views help a bit, but they are not a great answer to the fact that SQL statements almost always have to be treated as an indivisible chunk.

I like SQL alright from a functionality perspective (the syntax leaves much to be desired), but I still use ORMs where appropriate just to be able to modularize and make reusable behavior where it makes sense.

There are no comments on this comment yet.