﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>brainboost commented on Effectus: Fatten your infrastructure</title><description>Ayende,
  
Yes, I'm absolutely agree with you about enumerables if you can  control event args, but events are different and even one sensible parameter, say on KeyDown event, would require to add handling method, if we need to look at the key pressed.  What I have to do is 
  
 ...
  
WireEvents(instance); 
  
WireEventsWithParameter(instance);
  
  
in Presenters and implement that method in similar manner. 
  
Thank you!
  
  
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment17</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment17</guid><pubDate>Tue, 22 Dec 2009 11:31:19 GMT</pubDate></item><item><title>Ayende Rahien commented on Effectus: Fatten your infrastructure</title><description>Brainboost,
  
I am afraid that I am not sure that I am following you.
  
If I need N parameters, I am going to have a method with an enumerable parameter
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment16</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment16</guid><pubDate>Tue, 22 Dec 2009 07:25:32 GMT</pubDate></item><item><title>Ayende Rahien commented on Effectus: Fatten your infrastructure</title><description>Kevin,
  
I can, but it is:
  
a) too hard to do for something this trivial.
  
b) don't assume that the observable is the source of the calculation, it is just the trigger for it.
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment15</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment15</guid><pubDate>Tue, 22 Dec 2009 07:24:14 GMT</pubDate></item><item><title>Ayende Rahien commented on Effectus: Fatten your infrastructure</title><description>Brendan,
  
A lot of the things in the source code would transfer to a service based model, yes.
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment14</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment14</guid><pubDate>Tue, 22 Dec 2009 07:23:33 GMT</pubDate></item><item><title>Ayende Rahien commented on Effectus: Fatten your infrastructure</title><description>Nick,
  
The logic that you use isn't necessarily based on the observable, you only need to run it after the observable have run.
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment13</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment13</guid><pubDate>Tue, 22 Dec 2009 07:22:46 GMT</pubDate></item><item><title>Ayende Rahien commented on Effectus: Fatten your infrastructure</title><description>Firefly,
  
I would add a validation library, hook it into the DataBindingFactory and have the infrastructure automatically catch ValidationException and show them in the UI in the appropriate manner.
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment12</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment12</guid><pubDate>Tue, 22 Dec 2009 07:21:57 GMT</pubDate></item><item><title>Ayende Rahien commented on Effectus: Fatten your infrastructure</title><description>Vadi,
  
Why would it fail?
  
I tested it with both, so I am pretty sure it wouldn't
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment11</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment11</guid><pubDate>Tue, 22 Dec 2009 07:21:13 GMT</pubDate></item><item><title>brainboost commented on Effectus: Fatten your infrastructure</title><description>Nice concept, first of all. Ok, binding to parameterless events is as easy as elegant but what about 2, 3 and more parameters in events? Are we need to put a method in the Presenters for any parameter case?  Played with code, it fits not only WPF but WinForms apps as well, but then you need some presenter modifications. 
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment10</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment10</guid><pubDate>Sun, 20 Dec 2009 22:37:28 GMT</pubDate></item><item><title>FallenGameR commented on Effectus: Fatten your infrastructure</title><description>Ouch. Forget prev comment. I didn't know it behaves differently in WinForms and WPF apps. 
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment9</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment9</guid><pubDate>Sun, 20 Dec 2009 21:51:24 GMT</pubDate></item><item><title>FallenGameR commented on Effectus: Fatten your infrastructure</title><description>Why BackgroundWorker in Effectus.Features.CreateNew calls CompleteSave in thу UI thread? I tested in console App, RunWorkerCompleted runs in a new thread:
  
  
private static void Print( string info )
  
{
  
    Console.WriteLine( "{0}: {1}",
  
        Thread.CurrentThread.GetHashCode(),
  
        info );
  
}
  
  
private static void Main( )
  
{
  
    Print( "Main thread" );
  
  
    var bw = new BackgroundWorker( );
  
    bw.DoWork += (sender, args) =&gt; Print( "Do work thread" );
  
    bw.RunWorkerCompleted += (sender, args) =&gt; Print( "Completed thread" );
  
    bw.RunWorkerAsync( );
  
  
    Thread.Sleep( 500 );
  
    Print( "Press Enter to exit" );
  
    Console.ReadLine( );
  
}
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment8</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment8</guid><pubDate>Sun, 20 Dec 2009 21:48:00 GMT</pubDate></item><item><title>Kevin Gadd commented on Effectus: Fatten your infrastructure</title><description>Can't you pull the identity of the Observable directly out of the expression tree, instead of having to specify it twice? That would also allow you to handle expressions that contain multiple Observables.
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment7</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment7</guid><pubDate>Sun, 20 Dec 2009 17:13:34 GMT</pubDate></item><item><title>Brendan commented on Effectus: Fatten your infrastructure</title><description>I haven't had the chance to look into Effectus but it is on my list of things to do over the holidays.
  
  
Typically any windows applications that I develop are client server based and running through a web service, Effectus looks to go straight to the database from what I have read.
  
  
Is there any way you could maybe extend Effectus to work over services?  It would be a great help to a lot of people and I would be very grateful.
  
  
Thanks again for another insight into best practice with NHibernate...
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment6</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment6</guid><pubDate>Sun, 20 Dec 2009 17:01:37 GMT</pubDate></item><item><title>Nick commented on Effectus: Fatten your infrastructure</title><description>Any reason not to pass the observable (or perhaps just the current value) to the fact like this:
  
  
return new Fact(CurrentPage, x =&gt; x &gt; 0);
  
  
Decouples the Fact from the class a little, and should be easier to test the fact in isolation, right?
  
  
-Nick
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment5</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment5</guid><pubDate>Sun, 20 Dec 2009 15:53:41 GMT</pubDate></item><item><title>firefly commented on Effectus: Fatten your infrastructure</title><description>Currently there is no validation logic for the save, which mean if the user enter no data the save will fail. So if I have the pleasure of picking your brain, may I ask where would you put such logic and why?
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment4</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment4</guid><pubDate>Sun, 20 Dec 2009 15:27:38 GMT</pubDate></item><item><title>Vadi commented on Effectus: Fatten your infrastructure</title><description>Sorry for changing the context of this discussion .. looks like the code may fail when CurrentPage is MaxPage or CurrentPage is 0, I am referring to OnMovePrev and OnMoveNext
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment3</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment3</guid><pubDate>Sun, 20 Dec 2009 14:43:30 GMT</pubDate></item><item><title>junior programmer commented on Effectus: Fatten your infrastructure</title><description>I am looking forward to the rest of the blog posts on Effectus. It deserves a lot more wordings than just the MSDN article. The article seems to be an overview only and much of the details didn't have an chance to delve into. It will be much better to explore section by section on the design decisions as well as the implementation details. It will be especially educational for people like me. Nowadays you need to know everything in order to do one thing great. Thanks.
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment2</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment2</guid><pubDate>Sun, 20 Dec 2009 12:11:40 GMT</pubDate></item><item><title>junior programmer commented on Effectus: Fatten your infrastructure</title><description>I am looking forward to the rest of the blog posts on Effectus. It deserves a lot more wordings than just the MSDN article. MSDN article seems to be an overview only and a lot of the details didn't have a chance to delve into. It will be extremely good to explore section by section on the reasons behind each design decision and implementation details. Thanks.
</description><link>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment1</link><guid>http://ayende.com/4332/effectus-fatten-your-infrastructure#comment1</guid><pubDate>Sun, 20 Dec 2009 12:08:16 GMT</pubDate></item></channel></rss>