On Wed, Jul 13, 2011 at 7:53 AM, Vladimir Zlatanov <span dir="ltr">&lt;<a href="mailto:vlado@dikini.net">vlado@dikini.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
The key, IMHO, will be the order of execution of the callbacks. In<br>
most, if not all, systems I&#39;ve used so far, based around such<br>
architecture this was their Achilles heel. Drupal hooks are one<br>
high-profile examples.<br>
<br>
The problem stems from the weird abstractions - you either don&#39;t know<br>
enough what else is out there, or you know too much. both of which are<br>
bad. Subject-observer while good, has its downsides :(<br>
<br>
The other option is to enforce separation of the results of the<br>
callbacks, so that the output is always deterministic.<br>
<br>
Cheers,<br>
Vlado<br>
<br></blockquote><div><br>I like the idea, and I think the callbacks can be executed in the order they are defined in the model. Even if it only saves you from writing all the validation boilerplate code seems worth giving a try.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
_______________________________________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
</blockquote></div><br>