-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Setup went pretty smooth, it just took a few tries to find out what dependencies are required (Boiler, Steam, HookableSuspenders,...) which obviously won't be a problem when using a .swc
I'm still not sold on ducktyping, but that's just a matter of preference, of course.
In general, it took me very little to adapt my mindset to working with Boiler, coming from RobotLegs. To me having a controller instead of commands is totally acceptable and actually makes more sense if you write service event handlers/callbacks in your controllers (as I do in RL, which I've always considered not clean, yet far more practical than having another command)
Noticed a small bug (?) there, the controller's constructor is called twice even though I only had one event mapped to it.
Probably it's instantiated once for reflection?
I like having a separate mechanism for configuration, it feels more clean and makes the application more readable.
However I missed overseeing the complete wiring, it's one of the main benefits of RL that you can see at a glance what events are mapped to which commands. In fact in RL, I sometimes use mediatorcommands instead of mediators, simply for having all of the wiring centralized.
Unless if I'm mistaken it's not possible to map several events to one controller method, right? I know, obviously I could map them to separate methods and relay them.
I don't like that the controller is required to have a reference to the dispatched event, in RL the commands can be completely agnostic to whether they are mapped to an event or called directly by commandmap.execute, which is more flexible.
Then I had several questions:
- how would I patch several controller methods? What would be a good approach to sequencing multiple controller methods, some of them calling async services, in sequence or concurrently?
- Am I correct that at the moment it's not possible to mediate the contextview in an automated fashion? And how should it do it now?
- Performance-wise I'm wondering whether the type detection mechanism won't slow down the application considerably if you have a lot of classes?