Click here to Skip to main content
11,579,898 members (72,675 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: The Evolution of Lunch Pin
Roger Wright27-Mar-14 10:36
memberRoger Wright27-Mar-14 10:36 
GeneralRe: The Evolution of Lunch Pin
vonb27-Mar-14 3:35
membervonb27-Mar-14 3:35 
GeneralRe: The Evolution of Lunch Pin
S u n s h i n e27-Mar-14 3:38
memberS u n s h i n e27-Mar-14 3:38 
GeneralRe: The Evolution of Lunch Pin
mikepwilson27-Mar-14 3:39
membermikepwilson27-Mar-14 3:39 
GeneralRe: The Evolution of Lunch Pin
Pualee27-Mar-14 3:44
memberPualee27-Mar-14 3:44 
GeneralRe: The Evolution of Lunch Pin
InsertCleverUserName27-Mar-14 3:52
memberInsertCleverUserName27-Mar-14 3:52 
GeneralRe: The Evolution of Lunch Pin
MarkTJohnson27-Mar-14 4:06
memberMarkTJohnson27-Mar-14 4:06 
GeneralRe: The Evolution of Lunch Pin
BillW3327-Mar-14 4:08
professionalBillW3327-Mar-14 4:08 
GeneralRe: The Evolution of Lunch Pin
BobJanova27-Mar-14 4:30
memberBobJanova27-Mar-14 4:30 
GeneralRe: The Evolution of Lunch Pin
mark merrens27-Mar-14 5:07
membermark merrens27-Mar-14 5:07 
GeneralRe: The Evolution of Lunch Pin
Walt Fair, Jr.27-Mar-14 5:41
subeditorWalt Fair, Jr.27-Mar-14 5:41 
GeneralRe: The Evolution of Lunch Pin
Forogar 27-Mar-14 5:48
member Forogar 27-Mar-14 5:48 
GeneralRe: The Evolution of Lunch Pin
Roger Wright27-Mar-14 10:49
memberRoger Wright27-Mar-14 10:49 
GeneralA software engineering debate/question Pin
Ennis Ray Lynch, Jr.27-Mar-14 3:13
memberEnnis Ray Lynch, Jr.27-Mar-14 3: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 Pin
PIEBALDconsult27-Mar-14 3:20
memberPIEBALDconsult27-Mar-14 3:20 
GeneralRe: A software engineering debate/question Pin
Nagy Vilmos27-Mar-14 3:29
professionalNagy Vilmos27-Mar-14 3:29 
GeneralRe: A software engineering debate/question Pin
Master.Man198027-Mar-14 3:34
memberMaster.Man198027-Mar-14 3:34 
GeneralRe: A software engineering debate/question Pin
mikepwilson27-Mar-14 3:42
membermikepwilson27-Mar-14 3:42 
GeneralRe: A software engineering debate/question Pin
BobJanova27-Mar-14 4:32
memberBobJanova27-Mar-14 4:32 
GeneralRe: A software engineering debate/question Pin
OriginalGriff27-Mar-14 3:26
protectorOriginalGriff27-Mar-14 3:26 
GeneralRe: A software engineering debate/question Pin
Nagy Vilmos27-Mar-14 3:32
professionalNagy Vilmos27-Mar-14 3:32 
GeneralRe: A software engineering debate/question Pin
OriginalGriff27-Mar-14 3:38
protectorOriginalGriff27-Mar-14 3:38 
GeneralRe: A software engineering debate/question Pin
Ennis Ray Lynch, Jr.27-Mar-14 3:42
memberEnnis Ray Lynch, Jr.27-Mar-14 3:42 
GeneralRe: A software engineering debate/question Pin
PIEBALDconsult27-Mar-14 3:45
memberPIEBALDconsult27-Mar-14 3:45 
GeneralRe: A software engineering debate/question Pin
mikepwilson27-Mar-14 3:40
membermikepwilson27-Mar-14 3:40 
GeneralRe: A software engineering debate/question Pin
Master.Man198027-Mar-14 3:57
memberMaster.Man198027-Mar-14 3:57 
GeneralRe: A software engineering debate/question Pin
Eddy Vluggen27-Mar-14 3:59
professionalEddy Vluggen27-Mar-14 3:59 
GeneralRe: A software engineering debate/question Pin
Collin Jasnoch27-Mar-14 4:16
professionalCollin Jasnoch27-Mar-14 4:16 
GeneralRe: A software engineering debate/question Pin
BobJanova27-Mar-14 4:37
memberBobJanova27-Mar-14 4:37 
GeneralRe: A software engineering debate/question Pin
Joe Woodbury27-Mar-14 8:25
professionalJoe Woodbury27-Mar-14 8:25 
GeneralRe: A software engineering debate/question Pin
_Maxxx_27-Mar-14 14:38
professional_Maxxx_27-Mar-14 14:38 
RantWell the battle continues Pin
glennPattonWork27-Mar-14 3:02
professionalglennPattonWork27-Mar-14 3:02 
GeneralRe: Well the battle continues Pin
jeron127-Mar-14 5:35
memberjeron127-Mar-14 5:35 
GeneralRe: Well the battle continues Pin
glennPattonWork27-Mar-14 5:41
professionalglennPattonWork27-Mar-14 5:41 
GeneralRe: Well the battle continues Pin
jeron127-Mar-14 5:54
memberjeron127-Mar-14 5:54 
GeneralRe: Well the battle continues Pin
glennPattonWork27-Mar-14 6:06
professionalglennPattonWork27-Mar-14 6:06 
GeneralRe: Well the battle continues Pin
jeron127-Mar-14 6:38
memberjeron127-Mar-14 6:38 
GeneralRe: Well the battle continues Pin
glennPattonWork27-Mar-14 6:44
professionalglennPattonWork27-Mar-14 6:44 
GeneralRe: Well the battle continues Pin
jeron127-Mar-14 6:47
memberjeron127-Mar-14 6:47 
GeneralBahamas Splits Pin
Dalek Dave27-Mar-14 2:05
memberDalek Dave27-Mar-14 2:05 
GeneralRe: Bahamas Splits Pin
Blue Waffle27-Mar-14 2:14
memberBlue Waffle27-Mar-14 2:14 
GeneralRe: Bahamas Splits Pin
mikepwilson27-Mar-14 3:35
membermikepwilson27-Mar-14 3:35 
GeneralRe: Bahamas Splits Pin
Madhava Verma Dantuluri27-Mar-14 2:21
memberMadhava Verma Dantuluri27-Mar-14 2:21 
GeneralRe: Bahamas Splits Pin
Mike Hankey27-Mar-14 2:26
memberMike Hankey27-Mar-14 2:26 
GeneralGimli and Gloin got about a bit didn't they Pin
Dalek Dave27-Mar-14 2:02
memberDalek Dave27-Mar-14 2:02 
RantDamned you Skype! Damned you and your kin! Pin
Nagy Vilmos27-Mar-14 0:24
professionalNagy Vilmos27-Mar-14 0:24 
GeneralRe: Damned you Skype! Damned you and your kin! Pin
Marco Bertschi27-Mar-14 0:27
protectorMarco Bertschi27-Mar-14 0:27 
GeneralRe: Damned you Skype! Damned you and your kin! Pin
Nagy Vilmos27-Mar-14 0:29
professionalNagy Vilmos27-Mar-14 0:29 
GeneralRe: Damned you Skype! Damned you and your kin! Pin
Marco Bertschi27-Mar-14 0:31
protectorMarco Bertschi27-Mar-14 0:31 
GeneralRe: Damned you Skype! Damned you and your kin! Pin
Nagy Vilmos27-Mar-14 0:32
professionalNagy Vilmos27-Mar-14 0: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
Web04 | 2.8.150603.1 | Last Updated 6 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid