Click here to Skip to main content
15,891,431 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WCMOTD Pin
Argonia16-Jun-14 22:51
professionalArgonia16-Jun-14 22:51 
GeneralRe: WCMOTD Pin
Bassam Abdul-Baki17-Jun-14 0:37
professionalBassam Abdul-Baki17-Jun-14 0:37 
GeneralRe: WCMOTD Pin
dan!sh 17-Jun-14 0:30
professional dan!sh 17-Jun-14 0:30 
GeneralRe: WCMOTD Pin
Kenneth Haugland17-Jun-14 0:40
mvaKenneth Haugland17-Jun-14 0:40 
GeneralRe: WCMOTD Pin
dan!sh 17-Jun-14 0:59
professional dan!sh 17-Jun-14 0:59 
GeneralRe: WCMOTD Pin
Rage17-Jun-14 1:13
professionalRage17-Jun-14 1:13 
GeneralRe: WCMOTD Pin
Kenneth Haugland17-Jun-14 1:16
mvaKenneth Haugland17-Jun-14 1:16 
RantReposted rant about the evil ORM! Pin
Tomaž Štih16-Jun-14 22:26
Tomaž Štih16-Jun-14 22:26 
Reposted from the Database.

At the end of the 90ties we somehow got into ORM. At the time - no matter how hard we tried - we always ended up with a messy and complicated code and filthy compromises. And it hasn't changed. But somehow frameworks like NHibernate and EntityFramework are becoming very popular.

So here is my rant.

Some time ago I worked on large projects and things were pretty predictable. You've got DB model. You generate your SQL procedure layer and your C# layer. Then you create your component / web service / wcf service / restful service and serialize results of your C# calls as POCOs.

Now try to do this with fancy NHibernate objects with auto-resolving proxy objects for related entities. It won't work. Because when objects are serialized their auto-resolving lazy evaluating proxies aren't. To solve it you duplicate /I'll write it again, for drama effect: duplicate/ your objects to create serializable POCOs. And then you create them CRUD functions on top of object models. Or even separate the entities /drama: dereference them having no two entities connected/... And, hey, you are back where you were with the stored procedures - only with lousier performance and three layers of crap on top of it.

So next time someone comes with a fancy-schmancy ORM wrapper it better already include web service / wcf service or restful service abstraction and work on top of it; rather then bellow it! Because otherwise we just off-load drudgery to the web services and call it "business layer" when in fact it is really a freaking "ORM back to stored procedures layer."

There. Hhhh...shhhh... I already feel better.

So ... how do YOU handle ORM and web services?
GeneralRe: Reposted rant about the evil ORM! Pin
harold aptroot16-Jun-14 22:30
harold aptroot16-Jun-14 22:30 
GeneralRe: Reposted rant about the evil ORM! Pin
PIEBALDconsult17-Jun-14 10:40
mvePIEBALDconsult17-Jun-14 10:40 
GeneralRe: Reposted rant about the evil ORM! Pin
_Maxxx_16-Jun-14 23:38
professional_Maxxx_16-Jun-14 23:38 
RantRe: Reposted rant about the evil ORM! Pin
Mycroft Holmes17-Jun-14 0:46
professionalMycroft Holmes17-Jun-14 0:46 
GeneralRe: Reposted rant about the evil ORM! Pin
PIEBALDconsult17-Jun-14 10:52
mvePIEBALDconsult17-Jun-14 10:52 
JokeI walked into a bar the other day and Leslie Nielsen asked me ... Pin
DeathByChocolate16-Jun-14 22:14
professionalDeathByChocolate16-Jun-14 22:14 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Argonia16-Jun-14 22:22
professionalArgonia16-Jun-14 22:22 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Johnny J.16-Jun-14 22:26
professionalJohnny J.16-Jun-14 22:26 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Argonia16-Jun-14 22:33
professionalArgonia16-Jun-14 22:33 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Johnny J.16-Jun-14 22:56
professionalJohnny J.16-Jun-14 22:56 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
PIEBALDconsult17-Jun-14 10:45
mvePIEBALDconsult17-Jun-14 10:45 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Johnny J.17-Jun-14 20:43
professionalJohnny J.17-Jun-14 20:43 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
DeathByChocolate16-Jun-14 22:33
professionalDeathByChocolate16-Jun-14 22:33 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Nagy Vilmos16-Jun-14 22:22
professionalNagy Vilmos16-Jun-14 22:22 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
OriginalGriff16-Jun-14 22:24
mveOriginalGriff16-Jun-14 22:24 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
DeathByChocolate16-Jun-14 22:36
professionalDeathByChocolate16-Jun-14 22:36 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
OriginalGriff16-Jun-14 22:47
mveOriginalGriff16-Jun-14 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.