If I can create an Order class that holds a list of LineItems and I can impose a minimum order amount rule over that list, I can write a unit test for that that needs nothing but Java and a ms to execute. Why should I complicate that?
1
Well, are you going to store it or not? If not, as you so eloquently put: en.wikipedia.org/wiki/Straw_…
1
1
Yes. But thats my point: why would you conflate the two? You argued separation of concerns yourself, didn’t you? You asked for a reason why one’d not use the relation model as primary. One answer: because it’s simpler to use a different one, not tied to a storage technology.
2
2
Admittedly, you could argue it would be even better to specify everything in a meta language, e.g. some kind of DSL, so that you’re not tied to Java
2
Sure, if you’re in a context where building DSLs is (economically) feasible. For mere mortals, it boils down to some arbitrary, general purpose programming language.
1
I’m not seriously suggesting that. I’m merely pointing out that you see no problem with a dependency on Java/the JVM, but do with one on SQL/an RDBMS.
1
1
I am surprised you actually derive *that* from the tweet. It was not my point at all.
1
I derived it from the “not tied to a storage technology”
1
Which Java – and any other general purpose programming language – obviously is not? 🤔 Whenever we built an app, there will be code. I'd just like to stick to *that* for fundamental rule implementations rather than rely on some specific downstream tech.
1
I am pretty surprised I have to defend an "There are other options with other tradeoffs" against a trollish "Just always use X. Why bother with anything else?". But I guess I should've know where this is going when I originally replied. 🤷‍♂️
1
My intention is not to troll, and my view is probably closer to yours than Lukas’s. I’m just honestly wondering why a dependency on SQL and an RDBMS is always seen as particularly wrong when we’re so willing to accept a similar dependency in other places

Jan 28, 2021 · 12:45 PM UTC

1
2
Wasn't accusing *you* of trolling. I also did by no means try to imply that working closely with SQL is a bad idea *depending on context*. I was opposing the "I can't really understand why you'd want to use anything *but* SQL for modeling." attitude expressed in the thread.
1
1