top | item 17892084

(no title)

saas_co_de | 7 years ago

> the two lines above are obviously wrong

there is something called psuedo code. use your imagination.

> Anyway, selectAllBy() and selectOneBy() are not enough to be confortable

Like I said: 80%.

> SomeModel.findAllBySql() which most ActiveRecord implementations provide

So you are arguing that you should use a huge ORM code base, full of bugs, but then don't use it for anything complex, which means don't use 80% of the code, which is what "handles" all those complex edge cases.

Except then you have to have your team agree on what "complex" is, and half the team (who don't actually code anything complex) argue that you should use the ORM for everything, and then you end up in the sh-tshow that most amateur shops that build on ORMs are in.

Bottom line, ORMs are for low skill teams that basically don't know what they are doing, and if they ditched the ORM they might actually be able to learn to code decent systems.

discuss

order