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

 
PraiseRe: New C# Wish List Item Pin
M Sukhdeep14-Apr-16 12:39
M Sukhdeep14-Apr-16 12:39 
GeneralRe: New C# Wish List Item PinPopular
Marc Clifton14-Apr-16 14:27
mvaMarc Clifton14-Apr-16 14:27 
GeneralRe: New C# Wish List Item Pin
Kevin Marois15-Apr-16 3:22
professionalKevin Marois15-Apr-16 3:22 
GeneralRe: New C# Wish List Item Pin
Jörgen Andersson14-Apr-16 19:01
professionalJörgen Andersson14-Apr-16 19:01 
GeneralRe: New C# Wish List Item Pin
Kevin Marois15-Apr-16 3:21
professionalKevin Marois15-Apr-16 3:21 
GeneralRe: New C# Wish List Item Pin
Jörgen Andersson15-Apr-16 3:38
professionalJörgen Andersson15-Apr-16 3:38 
GeneralRe: New C# Wish List Item Pin
Kevin Marois15-Apr-16 3:39
professionalKevin Marois15-Apr-16 3:39 
GeneralRe: New C# Wish List Item Pin
Marc Clifton15-Apr-16 3:55
mvaMarc Clifton15-Apr-16 3:55 
Kevin Marois wrote:
There are many times when a property change triggers an async call.


Actually, I tend to disagree. It's still a side-effect. A property setter should do only that -- set the underlying field value, which changes the state of the object for just that property. Doing anything else obscures the fact that the setter does something that potentially affects the rest of the application, or has additional hidden state changes of the object itself. If you really need an async operation, personally, I would code a method like await UpdateCustomer(selectedCustomer);, which is a lot clearer.

Marc

GeneralRe: New C# Wish List Item Pin
Kevin Marois15-Apr-16 3:57
professionalKevin Marois15-Apr-16 3:57 
GeneralRe: New C# Wish List Item Pin
Marc Clifton15-Apr-16 4:07
mvaMarc Clifton15-Apr-16 4:07 
GeneralRe: New C# Wish List Item Pin
Kevin Marois15-Apr-16 4:10
professionalKevin Marois15-Apr-16 4:10 
GeneralRe: New C# Wish List Item Pin
Marc Clifton15-Apr-16 4:13
mvaMarc Clifton15-Apr-16 4:13 
GeneralRe: New C# Wish List Item Pin
Kyle Moyer15-Apr-16 10:37
Kyle Moyer15-Apr-16 10:37 
GeneralIt's a unix thing... Pin
charlieg14-Apr-16 10:37
charlieg14-Apr-16 10:37 
GeneralRe: It's a unix thing... Pin
Pete O'Hanlon14-Apr-16 10:39
mvePete O'Hanlon14-Apr-16 10:39 
GeneralRe: It's a unix thing... Pin
Mark_Wallace14-Apr-16 10:56
Mark_Wallace14-Apr-16 10:56 
GeneralRe: It's a unix thing... Pin
charlieg14-Apr-16 11:34
charlieg14-Apr-16 11:34 
GeneralRe: It's a unix thing... Pin
Kevin Marois14-Apr-16 11:55
professionalKevin Marois14-Apr-16 11:55 
GeneralRe: It's a unix thing... Pin
rriegel14-Apr-16 12:31
professionalrriegel14-Apr-16 12:31 
GeneralRe: It's a unix thing... Pin
charlieg14-Apr-16 12:56
charlieg14-Apr-16 12:56 
GeneralRe: It's a unix thing... Pin
Marc Clifton14-Apr-16 14:29
mvaMarc Clifton14-Apr-16 14:29 
GeneralRe: It's a unix thing... Pin
charlieg14-Apr-16 15:03
charlieg14-Apr-16 15:03 
GeneralRe: It's a unix thing... Pin
Andreas Mertens15-Apr-16 6:39
professionalAndreas Mertens15-Apr-16 6:39 
GeneralRe: It's a unix thing... Pin
Plamen Dragiyski14-Apr-16 22:17
professionalPlamen Dragiyski14-Apr-16 22:17 
QuestionMacBook Pro HDD question Pin
David Crow14-Apr-16 10:28
David Crow14-Apr-16 10:28 

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.