Click here to Skip to main content

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: The Evolution of Lunch PinmemberRoger Wright27-Mar-14 11:36 
GeneralRe: The Evolution of Lunch Pinmembervonb27-Mar-14 4:35 
GeneralRe: The Evolution of Lunch PinmemberS u n s h i n e27-Mar-14 4:38 
GeneralRe: The Evolution of Lunch Pinmembermikepwilson27-Mar-14 4:39 
GeneralRe: The Evolution of Lunch PinmemberPualee27-Mar-14 4:44 
GeneralRe: The Evolution of Lunch PinmemberInsertCleverUserName27-Mar-14 4:52 
GeneralRe: The Evolution of Lunch PinmemberMarkTJohnson27-Mar-14 5:06 
GeneralRe: The Evolution of Lunch PinprofessionalBillW3327-Mar-14 5:08 
GeneralRe: The Evolution of Lunch PinmemberBobJanova27-Mar-14 5:30 
GeneralRe: The Evolution of Lunch Pinmembermark merrens27-Mar-14 6:07 
GeneralRe: The Evolution of Lunch PinsubeditorWalt Fair, Jr.27-Mar-14 6:41 
GeneralRe: The Evolution of Lunch Pinmember Forogar 27-Mar-14 6:48 
GeneralRe: The Evolution of Lunch PinmemberRoger Wright27-Mar-14 11:49 
GeneralA software engineering debate/question [modified] PinmemberEnnis Ray Lynch, Jr.27-Mar-14 4:13 
While reading theDailyWTF the other day a contributor mentioned a pattern that he thought was a WTF and that was requiring object in constructors over id values.

Sorry, my example was too specific for people
ie

public List GetLineItemsForOrder(Order order);
public static void DoSomeAction(Foo foo);

vs

public List GetLineItemsByOrderId(Int64 orderId);
public static void DoSomeActionById(Int64 fooId);


Hopefully, my clarification will help focus people to addressing the specific question. But then, I have been here long enough to know; asking a question on this forum really never ends well.


To be honest I nearly universally prefer the former (requiring fully hydrated objects) In the 99% of cases where I write code, where absolute performance isn't critical, the first method is so much more reliable and easier for Junior developers to work with. (Less mistakes, more compiler errors, etc)

So, what say you? Remember, if you disagree you are wrong, also remember I do both depending on my mood so not only am I Intransigent but I am a hypocrite.
Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting.

"And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

"All users always want Excel" --Ennis Lynch


modified 27-Mar-14 9:45am.

GeneralRe: A software engineering debate/question [modified] PinmemberPIEBALDconsult27-Mar-14 4:20 
GeneralRe: A software engineering debate/question PinprofessionalNagy Vilmos27-Mar-14 4:29 
GeneralRe: A software engineering debate/question PinmemberMaster.Man198027-Mar-14 4:34 
GeneralRe: A software engineering debate/question Pinmembermikepwilson27-Mar-14 4:42 
GeneralRe: A software engineering debate/question PinmemberBobJanova27-Mar-14 5:32 
GeneralRe: A software engineering debate/question PinprotectorOriginalGriff27-Mar-14 4:26 
GeneralRe: A software engineering debate/question PinprofessionalNagy Vilmos27-Mar-14 4:32 
GeneralRe: A software engineering debate/question PinprotectorOriginalGriff27-Mar-14 4:38 
GeneralRe: A software engineering debate/question PinmemberEnnis Ray Lynch, Jr.27-Mar-14 4:42 
GeneralRe: A software engineering debate/question PinmemberPIEBALDconsult27-Mar-14 4:45 
GeneralRe: A software engineering debate/question Pinmembermikepwilson27-Mar-14 4:40 
GeneralRe: A software engineering debate/question PinmemberMaster.Man198027-Mar-14 4:57 
GeneralRe: A software engineering debate/question PinprofessionalEddy Vluggen27-Mar-14 4:59 
GeneralRe: A software engineering debate/question [modified] PinprofessionalCollin Jasnoch27-Mar-14 5:16 
GeneralRe: A software engineering debate/question PinmemberBobJanova27-Mar-14 5:37 
GeneralRe: A software engineering debate/question PinprofessionalJoe Woodbury27-Mar-14 9:25 
GeneralRe: A software engineering debate/question Pinprofessional_Maxxx_27-Mar-14 15:38 
RantWell the battle continues PinprofessionalglennPattonWork27-Mar-14 4:02 
GeneralRe: Well the battle continues Pinmemberjeron127-Mar-14 6:35 
GeneralRe: Well the battle continues PinprofessionalglennPattonWork27-Mar-14 6:41 
GeneralRe: Well the battle continues Pinmemberjeron127-Mar-14 6:54 
GeneralRe: Well the battle continues PinprofessionalglennPattonWork27-Mar-14 7:06 
GeneralRe: Well the battle continues Pinmemberjeron127-Mar-14 7:38 
GeneralRe: Well the battle continues PinprofessionalglennPattonWork27-Mar-14 7:44 
GeneralRe: Well the battle continues Pinmemberjeron127-Mar-14 7:47 
GeneralBahamas Splits PinmemberDalek Dave27-Mar-14 3:05 
GeneralRe: Bahamas Splits PinmemberBlue Waffle27-Mar-14 3:14 
GeneralRe: Bahamas Splits Pinmembermikepwilson27-Mar-14 4:35 
GeneralRe: Bahamas Splits PinmemberMadhava Verma Dantuluri27-Mar-14 3:21 
GeneralRe: Bahamas Splits PinmemberMike Hankey27-Mar-14 3:26 
GeneralGimli and Gloin got about a bit didn't they PinmemberDalek Dave27-Mar-14 3:02 
RantDamned you Skype! Damned you and your kin! PinprofessionalNagy Vilmos27-Mar-14 1:24 
GeneralRe: Damned you Skype! Damned you and your kin! PinprotectorMarco Bertschi27-Mar-14 1:27 
GeneralRe: Damned you Skype! Damned you and your kin! PinprofessionalNagy Vilmos27-Mar-14 1:29 
GeneralRe: Damned you Skype! Damned you and your kin! PinprotectorMarco Bertschi27-Mar-14 1:31 
GeneralRe: Damned you Skype! Damned you and your kin! PinprofessionalNagy Vilmos27-Mar-14 1:32 

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.150331.1 | Last Updated 2 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid