« first day (2282 days earlier)      last day (1867 days later) » 

8:26 AM
morning
 
 
3 hours later…
11:01 AM
@Alex ping me when you can't find things I shared ;)
(don't star the quote please - star the original by clicking quote if you're going to do it)
 
11:45 AM
Hi Maverik
Don't want to interrupt your work. You have a wonderful habit of reading the transcript (unlike me!) and so you'll get to it when time allows
 
Another day, another possibility to screw up! Todays issue, When I do async work in my VM that is going to affect the GUI. Is it a ok solution to use the SynchroizationContext?
 
12:19 PM
Another reason why I love R#: being able to click on C# built in methods and have it decompile and show me the code.
(Of course, ^ that doesn't imply I understand the code!)
 
 
2 hours later…
2:02 PM
@Markus If the async work is triggered, and you're not using .ConfigureAwait(false), then it will remain on the same SynchronizationContext anyway.
My strategy is usually to isolate all the UI-thread-touched stuff in the VM methods, and any model work the VM doesn't own should be factored into the model or a service as appropriate, and awaited with .ConfigureAwait(false)
Does that make sense?
I think I may have been unclear there - you don't want to configure the await as false until a layer where the continuation - everything after the await point - isn't UI thread dependent. So if you update something owned by the UI thread later in your method, that's not the method to use ConfigureAwait(false) in.
 
2:23 PM
What I do is to store the SyncContext.Current in the ctor (where it's the GUI thread), then whenever I want to update, I use the stored context.
 
Oh, so you're updating reactively?
Like, from a pushed update from something outside the VM?
That's an... okay way to do it. I tend to instead get the dispatcher and invoke a callback on it, but I think either way is acceptable...?
I don't actually know if it makes any difference or not.
 
I have used the dispatcher before, and that has also worked ok
 
 
1 hour later…
3:39 PM
They both do the same thing - dispatcher has the advantage of letting you prioritize the work, but context is often simpler, depending on the libs you are using
 
3:52 PM
(a very late) good morning
 
Hi Lynn
Happy Friday
 
4:07 PM
@LynnCrumbling Bah - barely 8am on the west coast still :p my guys haven't even started yet
 
4:21 PM
Hiya Alex, and happy friday to you, as well.
@ReedCopsey I know.. right? These west coasters... lazy bums ;)
(of course, I'm sure they get every bit as annoyed when they call an east coast company at 2:30pm and everyone is gone for the day.)
 
5:18 PM
yes, yes we do
though I start at 7AM to match my east coast colleagues
 
I'm in the office at 7 too, but east coast time
 
So you are like my colleagues posting on slack at 5 in the morning... crazy bastards
 
Hah!
I'm up most weekdays at ~4:30
"Early to bed, early to rise... and you'll cut years off your life expectancy."
 
yeah, you're nuts
 
Certifiable
Hmm. Maybe I can list that as a certification on my resume
 

« first day (2282 days earlier)      last day (1867 days later) »