Click here to Skip to main content
15,891,629 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: The Evolution of Lunch Pin
MarkTJohnson27-Mar-14 4:06
professionalMarkTJohnson27-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
BobJanova27-Mar-14 4:30 
GeneralRe: The Evolution of Lunch Pin
R. Giskard Reventlov27-Mar-14 5:07
R. Giskard Reventlov27-Mar-14 5:07 
GeneralRe: The Evolution of Lunch Pin
Dr.Walt Fair, PE27-Mar-14 5:41
professionalDr.Walt Fair, PE27-Mar-14 5:41 
GeneralRe: The Evolution of Lunch Pin
  Forogar  27-Mar-14 5:48
professional  Forogar  27-Mar-14 5:48 
GeneralRe: The Evolution of Lunch Pin
Roger Wright27-Mar-14 10:49
professionalRoger Wright27-Mar-14 10:49 
GeneralA software engineering debate/question Pin
Ennis Ray Lynch, Jr.27-Mar-14 3:13
Ennis 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
<br />
public List<Bar> GetLineItemsForOrder(Order order);<br />
public static void DoSomeAction(Foo foo);<br />

vs
<br />
public List<LineItem> GetLineItemsByOrderId(Int64 orderId);<br />
public static void DoSomeActionById(Int64 fooId);<br />


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
mvePIEBALDconsult27-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
Master.Man198027-Mar-14 3:34 
GeneralRe: A software engineering debate/question Pin
mikepwilson27-Mar-14 3:42
mikepwilson27-Mar-14 3:42 
GeneralRe: A software engineering debate/question Pin
BobJanova27-Mar-14 4:32
BobJanova27-Mar-14 4:32 
GeneralRe: A software engineering debate/question Pin
OriginalGriff27-Mar-14 3:26
mveOriginalGriff27-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
mveOriginalGriff27-Mar-14 3:38 
GeneralRe: A software engineering debate/question Pin
Ennis Ray Lynch, Jr.27-Mar-14 3:42
Ennis Ray Lynch, Jr.27-Mar-14 3:42 
GeneralRe: A software engineering debate/question Pin
PIEBALDconsult27-Mar-14 3:45
mvePIEBALDconsult27-Mar-14 3:45 
GeneralRe: A software engineering debate/question Pin
mikepwilson27-Mar-14 3:40
mikepwilson27-Mar-14 3:40 
GeneralRe: A software engineering debate/question Pin
Master.Man198027-Mar-14 3:57
Master.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
BobJanova27-Mar-14 4:37
BobJanova27-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
glennPattonWork327-Mar-14 3:02
professionalglennPattonWork327-Mar-14 3:02 

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.