Category Archives: Model-View-Presenter

How Ruby Taught Me To DRY Up My Code With Lambda Blocks

I’ve been working in Ruby for my Albacore project over the last 6 or 8 months, and taking every chance I can find to learn how to really use the language effectively. One of the benefits I’m seeing in a … Continue reading 

Also posted in .NET, C#, Lambda Expressions, Pragmatism, Principles and Patterns, Ruby | 5 Comments

Understanding The Application Controller Through Object Messaging Patterns

Earlier in the year, I posted a few times on the Application Controller pattern that I was implementing, including some workflow service related posts, all leading up to the presentation on decoupling workflow from forms that I gave at Austin … Continue reading 

Also posted in .NET, Analysis and Design, AppController, Messaging, Principles and Patterns, Workflow | 5 Comments

Decoupling Workflow And Forms With An Application Controller

One of the big problems I’ve been trying to solve recently, is in my current WinForms application that using a Model-View-Presenter setup. I have my workflow between forms coupled to the forms directly. That is, in order to get from … Continue reading 

Also posted in .NET, AppController, C#, Design Patterns, Git, Principles and Patterns | 9 Comments

Why ‘Should Attach View To Presenter’ Is An Invalid Unit Test / Observation.

I’ve written a lot of specification tests like this in the last three years, from a UI / Workflow perspective, with Model-View-Presenter as my core UI architecture: [TestFixture] public class When_starting_some_process() {   IMyView view; MyPresenter presenter;   [Setup] public … Continue reading 

Also posted in .NET, Analysis and Design, Behavior Driven Development, C#, Principles and Patterns, Unit Testing | 13 Comments

Encapsulation: Entities, Collections And Business Rules

Yesterday, I was involved two very separate yet very related conversations. One was via twitter with Colin Jack and Jimmy Bogard (which I was only a partial contributor to – mostly just reading their conversation) and another after work with … Continue reading 

Also posted in .NET, Analysis and Design, Design Patterns, Domain Driven Design, Principles and Patterns, Refactoring | 6 Comments

DDD Question: Where does required info validation belong for an Entity?

Let’s say I have a small hierarchy of object: Faults and Parts. A Fault can contain many parts, and a part has no meaning without being associated to a Fault. To ensure that I have no Parts without a parent … Continue reading 

Also posted in .NET, Analysis and Design, Design Patterns, Domain Driven Design | 19 Comments