MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/functionalprogramming/comments/16rmdo7/why_oop_sucks/k2881va/
r/functionalprogramming • u/Training-Marsupial-5 • Sep 25 '23
81 comments sorted by
View all comments
Show parent comment
3
What would OOP bring to this case compared to structs or records outside of OOP?
1 u/Top_Community7261 Sep 27 '23 Design your database tables so that all of the tables can be modeled with one parent class and one subclass per table. Then you just need one class of CRUD methods to handle single records or multiple records.
1
Design your database tables so that all of the tables can be modeled with one parent class and one subclass per table. Then you just need one class of CRUD methods to handle single records or multiple records.
View all comments
Show parent comment
3
u/pthierry Sep 26 '23
What would OOP bring to this case compared to structs or records outside of OOP?