Click here to Skip to main content
11,484,752 members (64,790 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
MarkTJohnson27-Mar-14 5:06
memberMarkTJohnson27-Mar-14 5:06 
GeneralRe: The Evolution of Lunch Pin
BillW3327-Mar-14 5:08
professionalBillW3327-Mar-14 5:08 
GeneralRe: The Evolution of Lunch Pin
BobJanova27-Mar-14 5:30
memberBobJanova27-Mar-14 5:30 
GeneralRe: The Evolution of Lunch Pin
mark merrens27-Mar-14 6:07
membermark merrens27-Mar-14 6:07 
GeneralRe: The Evolution of Lunch Pin
Walt Fair, Jr.27-Mar-14 6:41
subeditorWalt Fair, Jr.27-Mar-14 6:41 
GeneralRe: The Evolution of Lunch Pin
Forogar 27-Mar-14 6:48
member Forogar 27-Mar-14 6:48 
GeneralRe: The Evolution of Lunch Pin
Roger Wright27-Mar-14 11:49
memberRoger Wright27-Mar-14 11:49 
GeneralA software engineering debate/question [modified] Pin
Ennis Ray Lynch, Jr.27-Mar-14 4:13
memberEnnis 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] Pin
PIEBALDconsult27-Mar-14 4:20
memberPIEBALDconsult27-Mar-14 4:20 
GeneralRe: A software engineering debate/question Pin
Nagy Vilmos27-Mar-14 4:29
professionalNagy Vilmos27-Mar-14 4:29 
GeneralRe: A software engineering debate/question Pin
Master.Man198027-Mar-14 4:34
memberMaster.Man198027-Mar-14 4:34 
GeneralRe: A software engineering debate/question Pin
mikepwilson27-Mar-14 4:42
membermikepwilson27-Mar-14 4:42 
GeneralRe: A software engineering debate/question Pin
BobJanova27-Mar-14 5:32
memberBobJanova27-Mar-14 5:32 
GeneralRe: A software engineering debate/question Pin
OriginalGriff27-Mar-14 4:26
protectorOriginalGriff27-Mar-14 4:26 
GeneralRe: A software engineering debate/question Pin
Nagy Vilmos27-Mar-14 4:32
professionalNagy Vilmos27-Mar-14 4:32 
GeneralRe: A software engineering debate/question Pin
OriginalGriff27-Mar-14 4:38
protectorOriginalGriff27-Mar-14 4:38 
GeneralRe: A software engineering debate/question Pin
Ennis Ray Lynch, Jr.27-Mar-14 4:42
memberEnnis Ray Lynch, Jr.27-Mar-14 4:42 
GeneralRe: A software engineering debate/question Pin
PIEBALDconsult27-Mar-14 4:45
memberPIEBALDconsult27-Mar-14 4:45 
GeneralRe: A software engineering debate/question Pin
mikepwilson27-Mar-14 4:40
membermikepwilson27-Mar-14 4:40 
GeneralRe: A software engineering debate/question Pin
Master.Man198027-Mar-14 4:57
memberMaster.Man198027-Mar-14 4:57 
GeneralRe: A software engineering debate/question Pin
Eddy Vluggen27-Mar-14 4:59
professionalEddy Vluggen27-Mar-14 4:59 
GeneralRe: A software engineering debate/question [modified] Pin
Collin Jasnoch27-Mar-14 5:16
professionalCollin Jasnoch27-Mar-14 5:16 
GeneralRe: A software engineering debate/question Pin
BobJanova27-Mar-14 5:37
memberBobJanova27-Mar-14 5:37 
GeneralRe: A software engineering debate/question Pin
Joe Woodbury27-Mar-14 9:25
professionalJoe Woodbury27-Mar-14 9:25 
GeneralRe: A software engineering debate/question Pin
_Maxxx_27-Mar-14 15:38
professional_Maxxx_27-Mar-14 15:38 

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 26 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid