by Marius Gheorghe
17. December 2009 06:40
In the past months i have been implementing in my projects MVP Passive View. You can find the description here. It works pretty good (in Windows Forms and Silverlight projects) and , from my point of view, it's far better than the "other" MVP implementation because the view remains without any logic responsability.
Here's how i implement it. Basically for each view action there is a associated method in the presenter.
public class OrderViewPresenter
{
private OrderViewDialog dialog = null;
public OrderViewPresenter(OrderViewDialog d)
{
dialog = d;
}
public void DisplayData()
{
//invoke the Order Business Object and load the order
Order o = .......
d.textBoxOrderDate = o.OrderDate;
}
public void CreateNewOrder()
{
//create the new order base on the dialog data
}
}
by Marius Gheorghe
14. December 2009 17:09
In real world you get to see a lot of WTF code. A lot. And then you stumble upon things like this. It looks like Flickr doesn't do branches , has only trunk and it pushes the trunk code into production a few times a day. For any software developer that's a giant WTF moment. It simply cannot be a good ideea.
Funny thing is that i met people who used to think that's a good ideea. I bet that when the next guy comes along will point that blog post to me and say : "But look at Flickr guys. It works for them" . Sigh...
by Marius Gheorghe
10. December 2009 06:32
Thumbs up. Worth reading.