<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://codebetter.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Glenn Block - All Comments</title><link>http://codebetter.com/blogs/glenn.block/default.aspx</link><description>Another ALT.NET guy at Microsoft
</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>re: ForEach, a simple but very useful extension method</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/19/foreach-a-simple-but-very-useful-extension-method.aspx#182297</link><pubDate>Tue, 26 Aug 2008 13:19:44 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182297</guid><dc:creator>wekempf</dc:creator><description>&lt;p&gt;I posted on your blog as well, but the gist of my post is that to those who have used other functional languages, it is clear that ForEach should not be chainable.&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182297" width="1" height="1"&gt;</description></item><item><title>re: ForEach, a simple but very useful extension method</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/19/foreach-a-simple-but-very-useful-extension-method.aspx#182293</link><pubDate>Tue, 26 Aug 2008 11:02:09 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182293</guid><dc:creator>Greg Beech</dc:creator><description>&lt;p&gt;I left a full response on my blog post (where wekempf also posted a comment). The essence is that not all LINQ operations are chainable or deferred, but all operations that are chainable are also deferred, and vice versa. As it isn't clear whether ForEach should be chainable, it isn't clear whether it should be deferred.&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182293" width="1" height="1"&gt;</description></item><item><title>re: Firing generic events with EventAggregator</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/22/firing-generic-events-with-eventaggregator.aspx#182286</link><pubDate>Tue, 26 Aug 2008 09:14:28 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182286</guid><dc:creator>Glenn Block</dc:creator><description>&lt;p&gt;@Udi, the event implementation we shipped with Prism actually does bind the two. CompositeWpfEvent&amp;lt;T&amp;gt; is bound to the parameters. &lt;/p&gt;
&lt;p&gt;This implementation (which needs a bunch of cleaning) is for dynamically creating an event from a string.&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182286" width="1" height="1"&gt;</description></item><item><title>2008 August 25 - Links for today &amp;laquo; My (almost) Daily Links</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/22/firing-generic-events-with-eventaggregator.aspx#182274</link><pubDate>Mon, 25 Aug 2008 23:25:38 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182274</guid><dc:creator>2008 August 25 - Links for today « My (almost) Daily Links</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;2008 August 25 - Links for today &amp;amp;laquo; My (almost) Daily Links&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182274" width="1" height="1"&gt;</description></item><item><title>re: ForEach, a simple but very useful extension method</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/19/foreach-a-simple-but-very-useful-extension-method.aspx#182269</link><pubDate>Mon, 25 Aug 2008 20:03:23 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182269</guid><dc:creator>wekempf</dc:creator><description>&lt;p&gt;Both Yoshi Carroll in the comment above, and Greg Beech in his linked post comment that Linq uses deferred execution and chaining. &amp;nbsp;That's simply not true. &amp;nbsp;Some parts of Linq follow this, but not all. &amp;nbsp;Just one example is Average, which is neither chainable nor does deferred execution. &amp;nbsp;I can't begin to guess why ForEach was left out, but it seems obvious that's not why.&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182269" width="1" height="1"&gt;</description></item><item><title>re: Firing generic events with EventAggregator</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/22/firing-generic-events-with-eventaggregator.aspx#182268</link><pubDate>Mon, 25 Aug 2008 19:17:13 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182268</guid><dc:creator>Udi Dahan: The Software Simplist</dc:creator><description>&lt;p&gt;Fixing the link in the previous comment:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.udidahan.com/2008/08/25/domain-events-take-2/"&gt;www.udidahan.com/.../domain-events-take-2&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182268" width="1" height="1"&gt;</description></item><item><title>re: Firing generic events with EventAggregator</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/22/firing-generic-events-with-eventaggregator.aspx#182251</link><pubDate>Mon, 25 Aug 2008 13:59:41 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182251</guid><dc:creator>Udi Dahan: The Software Simplist</dc:creator><description>&lt;p&gt;I've got to say that the fact that the definition of the event (const string) is separate from the parameter definition is... unfortunate.&lt;/p&gt;
&lt;p&gt;I think it would be simpler to keep the definition of events/commands in one place like this:&lt;/p&gt;
&lt;p&gt;public static class DomainEvents&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static readonly DomainEvent&amp;lt;IProduct&amp;gt; ProductReportedLost = new DomainEvent&amp;lt;IProduct&amp;gt;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static readonly DomainEvent&amp;lt;ICart&amp;gt; CartIsFull = new DomainEvent&amp;lt;ICart&amp;gt;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;This holds for composite client commands and server-side domain model events.&lt;/p&gt;
&lt;p&gt;I've got the infrastructure that supports this up on my post &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://www.udidahan.com/2008/08/25/domain-events-take-2/&amp;quot;&amp;gt;Domain"&gt;www.udidahan.com/.../&amp;quot;&amp;gt;Domain&lt;/a&gt; Events - Take 2&amp;lt;/a&amp;gt;.&lt;/p&gt;
&lt;p&gt;Thoughts?&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182251" width="1" height="1"&gt;</description></item><item><title>re: ForEach, a simple but very useful extension method</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/19/foreach-a-simple-but-very-useful-extension-method.aspx#182210</link><pubDate>Sat, 23 Aug 2008 15:35:07 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182210</guid><dc:creator>Greg Beech</dc:creator><description>&lt;p&gt;My assumption as to why the Enumerable class doesn't provide a ForEach extension method is because there are a number of valid implementations, using either deferred or immediate execution. I wrote more about this a couple of months back: &lt;a rel="nofollow" target="_new" href="http://gregbeech.com/blogs/tech/archive/2008/06/30/why-doesn-t-system-linq-enumerable-have-a-foreach-extension-method.aspx"&gt;gregbeech.com/.../why-doesn-t-system-linq-enumerable-have-a-foreach-extension-method.aspx&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182210" width="1" height="1"&gt;</description></item><item><title>Dew Drop - August 23, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/22/firing-generic-events-with-eventaggregator.aspx#182208</link><pubDate>Sat, 23 Aug 2008 14:17:25 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182208</guid><dc:creator>Dew Drop - August 23, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Dew Drop - August 23, 2008 | Alvin Ashcraft's Morning Dew&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182208" width="1" height="1"&gt;</description></item><item><title>re: Firing generic events with EventAggregator</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/22/firing-generic-events-with-eventaggregator.aspx#182197</link><pubDate>Fri, 22 Aug 2008 14:36:37 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182197</guid><dc:creator>Sean Feldman</dc:creator><description>&lt;p&gt;Is there a road map for Prism project? Would be interestng to know where are you heading with it. Thank you.&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182197" width="1" height="1"&gt;</description></item><item><title>Firing generic events with EventAggregator</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/01/07/spiking-around-notification-and-generic-notifiers-part-i.aspx#182189</link><pubDate>Fri, 22 Aug 2008 11:01:59 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182189</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;It&amp;amp;#39;s been a while since i posted anything on Prism. When I left p&amp;amp;amp;p, i said you would see more&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182189" width="1" height="1"&gt;</description></item><item><title>Firing generic events with EventAggregator</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/01/07/spiking-around-notification-and-generic-notifiers-part-i.aspx#182187</link><pubDate>Fri, 22 Aug 2008 10:11:43 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182187</guid><dc:creator>Glenn Block</dc:creator><description>&lt;p&gt;It&amp;amp;#39;s been a while since i posted anything on Prism. When I left p&amp;amp;amp;p, i said you would see more&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182187" width="1" height="1"&gt;</description></item><item><title>re: ForEach, a simple but very useful extension method</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/08/19/foreach-a-simple-but-very-useful-extension-method.aspx#182176</link><pubDate>Thu, 21 Aug 2008 19:48:24 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182176</guid><dc:creator>Zack Owens</dc:creator><description>&lt;p&gt;Any reason you didn't check for nulls?&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182176" width="1" height="1"&gt;</description></item><item><title>re: Using ViewModels and DataTemplates to compose your UI</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/05/24/using-viewmodels-and-datatemplates-to-compose-your-ui.aspx#182165</link><pubDate>Thu, 21 Aug 2008 17:39:45 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182165</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks for the reply...I'm VERY new to this whole MVx architecture and it's got my head spinning...it seems the more I read, the more I become confused because everyone has a different opinion on how to implement a pattern...anyway...&lt;/p&gt;
&lt;p&gt;In the example above I could/would create a property called City on the EmployeeModel and then that property would be populated with a generic list that is created by a call to a datastore (via DAL) that would retrieve the list of cities?&lt;/p&gt;
&lt;p&gt;Thanks so much for responding...&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182165" width="1" height="1"&gt;</description></item><item><title>re: Using ViewModels and DataTemplates to compose your UI</title><link>http://codebetter.com/blogs/glenn.block/archive/2008/05/24/using-viewmodels-and-datatemplates-to-compose-your-ui.aspx#182154</link><pubDate>Thu, 21 Aug 2008 06:37:57 GMT</pubDate><guid isPermaLink="false">d21fbbc9-c112-4f32-ad14-95939a2c53d4:182154</guid><dc:creator>Glenn Block</dc:creator><description>&lt;p&gt;Hi @Mike&lt;/p&gt;
&lt;p&gt;What you can do is hang your combo list off of your presentation model as a property, say a List&amp;lt;String&amp;gt;, or a List&amp;lt;City&amp;gt; Then just bind to it.&lt;/p&gt;
&lt;p&gt;Because its a ViewModel, you can decorate it with whatever it needs tot drive the UI.&lt;/p&gt;
&lt;img src="http://codebetter.com/aggbug.aspx?PostID=182154" width="1" height="1"&gt;</description></item></channel></rss>