Wpis z mikrobloga

ORM Is an Offensive Anti-Pattern

TL;DR ORM is a terrible anti-pattern that violates all principles of object-oriented programming, tearing objects apart and turning them into dumb and passive data bags. There is no excuse for ORM existence in any application, be it a small web app or an enterprise-size system with thousands of tables and CRUD manipulations on them. What is the alternative? SQL-speaking objects.

http://www.yegor256.com/2014/12/01/orm-offensive-anti-pattern.html

#programowanie #java #bazydanych

#msqspam
  • 10
  • Odpowiedz
  • Otrzymuj powiadomienia
    o nowych komentarzach

@msq: Bieda, co on de facto chce zrobić czego nie może zrobić teraz?

1.) Nie chce mieć interface'u transakcji za każdym razem na wierzchu, więc zrobił sobie klasę

Txn
do
  • Odpowiedz
Jak kazda rzecz w Tech Worldzie ... byl hype na ORM, mija hype na ormy i zderzamy sie z rzeczywistoscia. Sa scenariusze gdzie ta technologia sie sprawdza, sa tez scenariusze w ktorych nie ma sensu sie pchac w ORM-y. Problemem sa zaslepieni inzynierowie ktorzy wciskaja te same rozwiazania w rozne scenariusze i tworza male potworne koszmarki.
  • Odpowiedz