3 ms·
> OOP actually makes a ton of sense for CRUD and database operations. OOP is nothing but trouble when you try to do some advanced database operations. Select s
by javcasas 11mo ago
> OOP actually makes a ton of sense for CRUD and database operations.
OOP is nothing but trouble when you try to do some advanced database operations. Select some columns, aggregate them. That is hard in OOP. Throw in window functions and OOP just decides you don't exist.
- 1718627440 11mo agoOOP is a fine paradigm for an abstraction boundary, the problem is actually abstraction boundaries in the wrong places. Make your object the database, and none of these problems exist. I know none of these OOP-first/only languages encourages that.
- javcasas 11mo agoresults = database.query(from table select column) That is a bold take these days. You will take a lot of flak if any of the parts just happens to barely look like SQL. Either you are on the ORM side or on the wrong side.
- 1718627440 11mo agoNot at all what I mean. std::vector<User> users = Database.recipient_list_for_message_board (message_thread, Database::ORDER_RECENT, skip=skip, inverse=True);