4 ms·
Hmm, last time I checked all the "new" frameworks were OOP too. Be it rails or django - they all have some kind of OO paradigm they adhere to.
by franzus 14y ago
Hmm, last time I checked all the "new" frameworks were OOP too. Be it rails or django - they all have some kind of OO paradigm they adhere to.
- gbog 14y agoYes, and there is this ORM impedance mismatch thing. I stopped writing classes for all tables and it removed many useless code and many issues related to stateful methods. Just one example: if you delete a book with book.delete() then how come you can two or many lines later change its title with book.title = Foo?
- zxcvb 14y agoYou can't. The JVM will tell you that the book object you are referring to no longer exists. I'm assuming your delete() method did actually remove the object.