« first day (3046 days earlier)      last day (1912 days later) » 

4:24 AM
Maybe I want too much... I want to have a property which accepts a nullable int? type in a setter, but returns an int ("normal" primitive) in a getter.
 
4:36 AM
... and if null was assigned through the setter, then the getter throws.
 
4:55 AM
Essentially, I don't like the .Value at the end of a m_settings.TimeoutThreshold.Value . It doesn't... feel... right.
TimeoutThreshold is a nullable property int?
 
 
1 hour later…
mr5
6:25 AM
Why can't I encounter all this synchronization problem you're talking about?
"If you're not experiencing it, it doesn't mean it's not happening"
 
6:47 AM
hi guys, I have installed Effort.EF6, but visual studio keeps saying it's not existed. Anyone knows what's wrong? Thanks
 
 
1 hour later…
7:48 AM
hola
@NickAlexeev But that's pretty much the essence of nullable types. That it can have a value... or not have a value.
I agree the syntax can feel a bit bulky.
 
 
3 hours later…
10:25 AM
I think I fucked up
I optimised something too hard and now it's missing shit randomly
 
But is it missing shit randomly fast enough?
 
It's doing it quickly, but occasionally the missing shit is needed
The fact that I've had 6 bug reports about it this morning is not a good sign
 
It seems your users have optimized their bug report workflow accordingly.
It's an arms race!
 
Oh no they don't get a choice. Apps automatically report bugs
 
That just means they've automated their process. AI is now involved, glaring disapprovingly at your code.
 
10:33 AM
I think if I implemented AI in my system it'd refuse to work citing dangerous working conditions
 
@LeeButler The biggest proof that so-called "AI" today isn't true AI is that it's still willing to work for humans.
 
11:02 AM
Hmm. Design consultation. I'll use the room as a rubber duck sounding board.
I have a class that listens to some event source that pushes events, meaning classes that implement IEvent. I want my listener to get the events, do some preliminary filtering, and then dispatch them to the relevant handler.
For handling, the obvious approach is to have an IEventHandler<TEvent> where TEvent : IEvent interface, with appropriate handlers for each event.
Now, the question is how to manage those classes. I can register them all in the Autofac container as their concrete interfaces (E.g. register IncidentCreatedEventHandler as IEventHandler<IncidentCreatedEvent>), but how will my dispatcher then match the event to the handler?
I can resolve, from Autofac, all IEventHandler<TEvent> instances and build my own dictionary, keyed by type, but that kind of defeats the purpose for registering them in Autofac in the first place.
Hmm. Autofac should have syntax for resolving a type by a dependent type. I'll check
Hmm, but I still need to build that dictionary, since I don't know in advance the event types I'll receive.
Oh, I can get Autofac to register the instances by type, and then resolve an IIndex<Type, IEventHandler>, but it means I need to remove some of the generic constraints, since I won't have compile-time type information.
Meh.
 
11:37 AM
Yay my shitty hacky workaround worked
 
So it's now even more optimized, but without missing shit randomly?
 
Exactly. And for some reason it's running even faster
 
11:53 AM
...and plane tickets ordered. Yay.
 
12:09 PM
Where you going
 
Ireland. In August.
 
Oooh
 
@AvnerShahar-Kashtan inject as IEnumerable<IEventHandler<TEvent>>
unless TEvent is not a class generic?
 
@misha130 It's not a generic definition of the main event dispatcher.
 
yea thats your main problem I see
honestly if you are removing generic constraints and using IIndex<Type, IEventHandle>
maybe this design isnt correct in this case
I dont have a better design at hand but this kind of smells
 
12:20 PM
What I see now is that there's already an implementation of an EventDispatcher for the same IEvents somewhere else in the system that already did a lot of the heavy lifting of discovering IEventHandler<T> instances by type.
I'm trying to see if it fits my usage or not.
 
makes more sense, yes
 
The current implementation is in the context of a specific aggregate object - I define a handler for each IEvent in the context of a specific object that needs to handle it. I might be able to use it.
 
 
4 hours later…
4:51 PM
guys, how can I retrieve coordinates from a bing map when clicking with left mouse button? I tries event handling but with no success
 
You really need to be more specific and give us a clue about what you''re working with
 
plus its not C#
 
Eh, maybe it's a desktop app with Bing Maps in a webbrowsercontorl
Or maybe an Asp application which he's also using some sort of API within a frame or something
 
well the second one would be still under js
 
Sorry guys, I'm working with WPF map control SDK with C#
 
4:54 PM
but sure lets give it the benefit of the doubt
you were right
 
bows Thank you
 
I'm trying to create a desktop app that simply prints the coordinates by a push of a mouse button
gimme a second to show you what I've tried to do
 
I've gotta go anyway, but somebody might be around to help in a bit. Unlikely though, try again tomorrow. Sunday nights are always quiet
 
 
4 hours later…
8:40 PM
@SamIbraheem you want to print them to?
 

« first day (3046 days earlier)      last day (1912 days later) »