Click here to Skip to main content
11,482,402 members (74,093 online)

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: WCMOTD [modified] Pin
Argonia16-Jun-14 23:51
professionalArgonia16-Jun-14 23:51 
GeneralRe: WCMOTD Pin
Bassam Abdul-Baki17-Jun-14 1:37
professionalBassam Abdul-Baki17-Jun-14 1:37 
GeneralRe: WCMOTD Pin
d@nish 17-Jun-14 1:30
member d@nish 17-Jun-14 1:30 
GeneralRe: WCMOTD Pin
Kenneth Haugland17-Jun-14 1:40
professionalKenneth Haugland17-Jun-14 1:40 
GeneralRe: WCMOTD Pin
d@nish 17-Jun-14 1:59
member d@nish 17-Jun-14 1:59 
GeneralRe: WCMOTD Pin
Rage17-Jun-14 2:13
professionalRage17-Jun-14 2:13 
GeneralRe: WCMOTD Pin
Kenneth Haugland17-Jun-14 2:16
professionalKenneth Haugland17-Jun-14 2:16 
RantReposted rant about the evil ORM! Pin
Tomaž Štih16-Jun-14 23:26
memberTomaž Štih16-Jun-14 23: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 23:30
memberharold aptroot16-Jun-14 23:30 
GeneralRe: Reposted rant about the evil ORM! Pin
PIEBALDconsult17-Jun-14 11:40
memberPIEBALDconsult17-Jun-14 11:40 
GeneralRe: Reposted rant about the evil ORM! Pin
_Maxxx_17-Jun-14 0:38
professional_Maxxx_17-Jun-14 0:38 
RantRe: Reposted rant about the evil ORM! Pin
Mycroft Holmes17-Jun-14 1:46
professionalMycroft Holmes17-Jun-14 1:46 
GeneralRe: Reposted rant about the evil ORM! Pin
PIEBALDconsult17-Jun-14 11:52
memberPIEBALDconsult17-Jun-14 11:52 
JokeI walked into a bar the other day and Leslie Nielsen asked me ... Pin
DeathByChocolate16-Jun-14 23:14
memberDeathByChocolate16-Jun-14 23:14 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Argonia16-Jun-14 23:22
professionalArgonia16-Jun-14 23:22 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Johnny J.16-Jun-14 23:26
professionalJohnny J.16-Jun-14 23:26 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Argonia16-Jun-14 23:33
professionalArgonia16-Jun-14 23:33 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Johnny J.16-Jun-14 23:56
professionalJohnny J.16-Jun-14 23:56 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
PIEBALDconsult17-Jun-14 11:45
memberPIEBALDconsult17-Jun-14 11:45 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Johnny J.17-Jun-14 21:43
professionalJohnny J.17-Jun-14 21:43 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
DeathByChocolate16-Jun-14 23:33
memberDeathByChocolate16-Jun-14 23:33 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
Nagy Vilmos16-Jun-14 23:22
professionalNagy Vilmos16-Jun-14 23:22 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
OriginalGriff16-Jun-14 23:24
protectorOriginalGriff16-Jun-14 23:24 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
DeathByChocolate16-Jun-14 23:36
memberDeathByChocolate16-Jun-14 23:36 
GeneralRe: I walked into a bar the other day and Leslie Nielsen asked me ... Pin
OriginalGriff16-Jun-14 23:47
protectorOriginalGriff16-Jun-14 23:47 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 25 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid