3 ms·
Yes. Business logic as far as possible must be expressed in declarative way. Java have very poor facilities for declarative programming. SQL (not PL/SQL) on
by Ingaz 15y ago
Yes.
Business logic as far as possible must be expressed in declarative way.
Java have very poor facilities for declarative programming.
SQL (not PL/SQL) on other side - is pure declarative language. It's already powerful DSL if you master it.
And yes, I agree with you, that writing logic in PL/SQL (as in imperative language) is equally terrible as writing it in Java.
- escoz 15y agoOmg.. this is getting worse. SQL is a DSL to deal with sets of data. Unless the application you're writing is a database management app, you're pretty much doing it really wrong, I'm sorry to tell you that.
- Ingaz 15y ago>>SQL is a DSL to deal with sets of data What's wrong with this? Can you imagine process of billing campaign? Than try it in Hibernated database and in raw SQL. Pure SQL will be thousands times faster. ORMs are good only for smth like Django Admin