Click here to Skip to main content
15,916,683 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: Is this an acceptable practice? Pin
patbob14-Apr-14 5:39
patbob14-Apr-14 5:39 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 6:01
Colborne_Greg14-Apr-14 6:01 
GeneralRe: Is this an acceptable practice? Pin
Fabio Franco14-Apr-14 2:57
professionalFabio Franco14-Apr-14 2:57 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 6:07
Colborne_Greg14-Apr-14 6:07 
GeneralRe: Is this an acceptable practice? Pin
Dan Neely14-Apr-14 3:35
Dan Neely14-Apr-14 3:35 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 6:06
Colborne_Greg14-Apr-14 6:06 
GeneralRe: Is this an acceptable practice? Pin
Dan Neely14-Apr-14 7:15
Dan Neely14-Apr-14 7:15 
AnswerRe: Is this an acceptable practice? Pin
Gates VP14-Apr-14 5:37
Gates VP14-Apr-14 5:37 
At a first glance, I find this confusing. In particular because the DataMember attribute actually accepts a constructor parameter.

- So if I set the constructor parameter, which field does it apply to?
- Likewise, if you want to switch out serializers and use something like Protocol Buffers this syntax simply won't translate. You would need to break out each one as the constructor is required.
- On top of this all, there's a mixing of types. I'm not a big fan of the "multi-declaration" syntax, especially when it doesn't save any actual lines like this example. But there are some cases where it is useful. That stated, if you're mixing types on the "multi-declarations", it's time split them out.

I wouldn't call this "unacceptable" practice, especially in the context of firing someone over this. I would however call this "non-standard" and "confusing" and ask that it be changed.
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 6:04
Colborne_Greg14-Apr-14 6:04 
GeneralRe: Is this an acceptable practice? Pin
Gates VP14-Apr-14 7:51
Gates VP14-Apr-14 7:51 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 7:55
Colborne_Greg14-Apr-14 7:55 
GeneralRe: Is this an acceptable practice? Pin
Gates VP14-Apr-14 9:01
Gates VP14-Apr-14 9:01 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 9:33
Colborne_Greg14-Apr-14 9:33 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 9:45
Colborne_Greg14-Apr-14 9:45 
GeneralRe: Is this an acceptable practice? Pin
Member 929572315-Apr-14 2:54
Member 929572315-Apr-14 2:54 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg15-Apr-14 4:24
Colborne_Greg15-Apr-14 4:24 
GeneralRe: Is this an acceptable practice? Pin
Dave Kreskowiak14-Apr-14 9:15
mveDave Kreskowiak14-Apr-14 9:15 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 9:31
Colborne_Greg14-Apr-14 9:31 
GeneralRe: Is this an acceptable practice? Pin
Fabio Franco14-Apr-14 6:15
professionalFabio Franco14-Apr-14 6:15 
GeneralRe: Is this an acceptable practice? Pin
Gates VP14-Apr-14 7:42
Gates VP14-Apr-14 7:42 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 7:49
Colborne_Greg14-Apr-14 7:49 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 7:48
Colborne_Greg14-Apr-14 7:48 
GeneralRe: Is this an acceptable practice? Pin
dg6yhw1114-Apr-14 6:41
dg6yhw1114-Apr-14 6:41 
GeneralRe: Is this an acceptable practice? Pin
Colborne_Greg14-Apr-14 7:39
Colborne_Greg14-Apr-14 7:39 
Generalneed help from people from the lounge Pin
Vasily Tserekh12-Apr-14 11:43
Vasily Tserekh12-Apr-14 11:43 

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.