3 ms·
this post goes so deep into architectural aspects, that becomes philosofical and makes us almost forget the not so elevated principle of "get shit done, fast".
by tudorconstantin 13y ago
this post goes so deep into architectural aspects, that becomes philosofical and makes us almost forget the not so elevated principle of "get shit done, fast". The ORM that I'm using (Perl's DBIx::Class) never let me down:
* it has model generators
* need an insert into or an update? bang, one line of code
* find_or_create? one line of code
* acess, create, update or delete related records? one line
* it has chained where clauses and hits the db only when it needs to access the data
* want hashes instead of objects in order to send them as a json response in a REST service? one line of code
and many more features. Is there an O/R "impedance mismatch" ? I don't know, I don't care and I don't use it if there is