<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.redwerb.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>Redwerb - All Comments</title><link>http://www.redwerb.com/blogs/redwerb/default.aspx</link><description>Tools, tips, and techniques for software developers.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: How Things Work: Events in .Net</title><link>http://www.redwerb.com/blogs/redwerb/archive/2008/04/20/how-things-work-events-in-net.aspx#108</link><pubDate>Mon, 21 Apr 2008 03:06:07 GMT</pubDate><guid isPermaLink="false">6e83d6d2-811f-440b-a5d8-c2ee42a4a714:108</guid><dc:creator>Myron</dc:creator><description>&lt;p&gt;Nice summary article. &amp;nbsp;Recently I've been doing some java, and while there are a few things I prefer about the java platform compared to .NET, I've got to say that after being spoiled with the way .NET (and VB.NET in particular) handles events, the java way is a royal PITA. &amp;nbsp;In .NET they took the observer pattern and baked it right onto the CLR and the languages themselves. &amp;nbsp;In java, you've got to manually implement the Observer interface on your subscriber object, and your publisher object has to derive from the Observable base class. &amp;nbsp;With java's lack of multiple inheritance, you're in trouble if you have a class that derives from some base class, and you want to add events to it. &amp;nbsp;You either create your own observer/observable interfaces and implement those, or find a way to accomplish what you want to do without events. &amp;nbsp;I googled the issue to see how other java developers addressed this issue, and the typical response I found was &amp;quot;you're not following good object-oriented design principles if you run into this problem. &amp;nbsp;Fix your design.&amp;quot; &amp;nbsp;Really? &amp;nbsp;You can't imagine ever having a base class, another derived class, and wanting to make the derived class observable? &amp;nbsp;It boggles the mind. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;That said, I think that the way VB.NET handles events is a bit *too* magical. &amp;nbsp;I didn't have a clue how events worked when I first started working with VB.NET, and I'm sure I created more than my fair share of memory leaks when I forgot to desubscribe from an event (or set the WithEvents field to Nothing) after finishing with an object in the cases where this is necessary. &amp;nbsp;Actually, &amp;quot;forgot&amp;quot; isn't accurate--I didn't even realize I needed to until we had memory leak issues shortly before one of our releases and we discussed this and addressed it. &amp;nbsp;I like how C# makes you more aware of what's going on with the object references, at least for when you first start working with events. &amp;nbsp;Now that I do understand how events work, I like the simplicity VB.NET provides :). &amp;nbsp;I just think it may not be best for new .NET developers to use VB.NET first, until they understand how events work and when they need to desubscribe from events to prevent memory leaks.&lt;/p&gt;
&lt;img src="http://www.redwerb.com/aggbug.aspx?PostID=108" width="1" height="1"&gt;</description></item><item><title>re: Great Software of 2007</title><link>http://www.redwerb.com/blogs/redwerb/archive/2007/12/29/great-software-of-2007.aspx#90</link><pubDate>Mon, 07 Jan 2008 08:54:23 GMT</pubDate><guid isPermaLink="false">6e83d6d2-811f-440b-a5d8-c2ee42a4a714:90</guid><dc:creator>Myron Marston</dc:creator><description>&lt;p&gt;Silverlight might be the greatest thing since whatever was the last greatest thing since sliced bread, but I don't think it stands a chance of widespread adoption as long as its owned by Microsoft. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The last time a Microsoft product became the standard for the internet (IE6), Microsoft sat around and didn't update it for what....6 years? &amp;nbsp;Meanwhile, their browser didn't support the industry standards very well, and we all know how most web developers feel about that. &amp;nbsp;There's too many web developers that hate Microsoft, either because of their history or simply because its popular to hate Microsoft. &amp;nbsp;Silverlight doesn't stand a chance to see widespread use.&lt;/p&gt;
&lt;p&gt;Unless they open sourced it....then it might.&lt;/p&gt;
&lt;p&gt;I found the ASP.NET MVC / URL Routing extensions to be interesting. &amp;nbsp;Sounds almost identical to Ruby on Rails (which I'm still using, by the way). &amp;nbsp;I guess Microsoft is seeing too many ASP.NET developers switch to Rails....&lt;/p&gt;
&lt;img src="http://www.redwerb.com/aggbug.aspx?PostID=90" width="1" height="1"&gt;</description></item></channel></rss>