I had a good question on my Build a CAB series today. “Where does the Presenter get instantiated?”
It depends.
For me, it’s always StructureMap instantiating a Presenter instance and filling it with its dependencies including the View. Occasionally I’ll pass the View in via some sort of Start(IView) method. Now, who calls StructureMap? That’s a longer question that I’m going to try to address in the last couple chapters of Build a CAB.
I don’t actually have true end-to-end code samples for Build a CAB unfortunately. I’ll try to address that in the ApplicationShell topic.
I’ve been slow on posting the last week or so mostly out of writer’s block. I’ve got a bunch of drafts but nothing remotely finished. In no particular order, I’m working on:
A Gentle Introduction to StructureMap and Dependency Injection (request from Chad Myers. I didn’t forget, I’m just slow)
2 posts on MicroController for “Build a CAB”, including one on my crackpot data binding replacement scheme
Lessons Learned for Building a Fluent Interface in C# (another request)
An essay on the importance of feedback
Fit testing tips and tricks
I’ve been wanting to do a post on the Visitor and Composite patterns forever