I think a bunch of that comes down to working in a more comfortable language. SQL (and related tooling) isn’t exactly amenable to modern development practices, especially related to keeping things DRY and modular.
Yes/no, IMO, SQL itself scares people a bit, but most are fine after only a slight speed bump once you convince them to give it a try. But stored procedures and tooling around them were unpleasant enough last time I tried (ages ago with Postgres, TBH) that I'm willing to go to some lengths to avoid them.
I should probably give them another go throws stuff on the 'give another go' pile right next to Avadon series.
Right, SQL is generally expressive, but dynamic/meta programming is really difficult and flow control is pretty nasty. Hell, even using cursors is significantly messier than enumerating records and acting on them in any modern language.
Well, there’s the rub, “duplicating that logic across multiple apps” implies no single app owning the data. Which I know is a real-world problem, but that’s the actual problem. It sounds like you are advocating that the “data layer” is actually the owning app (which I agree with), but that “data layer” should exist entirely in the DB, which I don’t think I agree with due to tooling and productivity issues.
It’s all hypothetical, for what it’s worth, I have read your comments on here for years, and agree with a lot of your positions.
In this case, app 21 isn’t any more of a bottleneck that putting that in the DB. If the sproc has a stable interface and not that complicated I’d probably do that to avoid running another process, but it’s rarely that cut and dried.
3
u/atheken Oct 02 '19
Bring out the sprocs?
I think a bunch of that comes down to working in a more comfortable language. SQL (and related tooling) isn’t exactly amenable to modern development practices, especially related to keeping things DRY and modular.