Click here to Skip to main content
15,890,123 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.

 
GeneralC# code survey Pin
Super Lloyd29-Oct-18 21:37
Super Lloyd29-Oct-18 21:37 
GeneralRe: C# code survey Pin
Jacquers29-Oct-18 21:56
Jacquers29-Oct-18 21:56 
GeneralRe: C# code survey Pin
#realJSOP30-Oct-18 6:08
mve#realJSOP30-Oct-18 6:08 
GeneralRe: C# code survey Pin
Wastedtalent29-Oct-18 22:04
professionalWastedtalent29-Oct-18 22:04 
GeneralRe: C# code survey PinPopular
CPallini29-Oct-18 22:06
mveCPallini29-Oct-18 22:06 
GeneralRe: C# code survey Pin
Jörgen Andersson29-Oct-18 22:23
professionalJörgen Andersson29-Oct-18 22:23 
GeneralRe: C# code survey Pin
CPallini29-Oct-18 22:37
mveCPallini29-Oct-18 22:37 
GeneralRe: C# code survey Pin
GuyThiebaut29-Oct-18 22:13
professionalGuyThiebaut29-Oct-18 22:13 
I would go for option 1.
I would also look at having some sort of mapping functionality so that the values can be populated 'automatically' by passing the DTO to some form of orchestrator together with the data source to populate it.

The following in option 2 is a huge code smell:
public FooDto(T1 value1 /** 24 values later */, T24 value24)

I have done this myself in the past but it is generally accepted nowadays that a large number of parameters in a signature is a bad idea.
“That which can be asserted without evidence, can be dismissed without evidence.”

― Christopher Hitchens


modified 30-Oct-18 4:35am.

GeneralRe: C# code survey Pin
Jörgen Andersson29-Oct-18 22:21
professionalJörgen Andersson29-Oct-18 22:21 
GeneralRe: C# code survey Pin
GKP199229-Oct-18 23:05
professionalGKP199229-Oct-18 23:05 
GeneralRe: C# code survey Pin
thatraja29-Oct-18 23:18
professionalthatraja29-Oct-18 23:18 
JokeRe: C# code survey Pin
Pete O'Hanlon30-Oct-18 1:12
mvePete O'Hanlon30-Oct-18 1:12 
GeneralRe: C# code survey Pin
Super Lloyd30-Oct-18 1:44
Super Lloyd30-Oct-18 1:44 
GeneralRe: C# code survey Pin
Nathan Minier30-Oct-18 1:26
professionalNathan Minier30-Oct-18 1:26 
GeneralRe: C# code survey Pin
Super Lloyd30-Oct-18 1:29
Super Lloyd30-Oct-18 1:29 
GeneralRe: C# code survey Pin
Super Lloyd30-Oct-18 1:30
Super Lloyd30-Oct-18 1:30 
GeneralRe: C# code survey Pin
MadMyche30-Oct-18 1:53
professionalMadMyche30-Oct-18 1:53 
JokeRe: C# code survey Pin
ZurdoDev30-Oct-18 1:55
professionalZurdoDev30-Oct-18 1:55 
GeneralRe: C# code survey Pin
Super Lloyd30-Oct-18 2:30
Super Lloyd30-Oct-18 2:30 
GeneralRe: C# code survey Pin
Hooga Booga31-Oct-18 1:41
Hooga Booga31-Oct-18 1:41 
GeneralRe: C# code survey Pin
Eddy Vluggen30-Oct-18 2:03
professionalEddy Vluggen30-Oct-18 2:03 
GeneralRe: C# code survey Pin
Super Lloyd30-Oct-18 2:29
Super Lloyd30-Oct-18 2:29 
GeneralRe: C# code survey Pin
Eddy Vluggen30-Oct-18 2:33
professionalEddy Vluggen30-Oct-18 2:33 
GeneralRe: C# code survey Pin
Marc Clifton30-Oct-18 2:53
mvaMarc Clifton30-Oct-18 2:53 
GeneralRe: C# code survey Pin
Dan Neely30-Oct-18 2:55
Dan Neely30-Oct-18 2:55 

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.