<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>VB 10 thoughts (part 8)</title><link>http://msmvps.com/blogs/bill/archive/2007/10/12/vb-10-thoughts-part-8.aspx</link><description>Today I was only going to add one, item, #29, but in writing the samples for it two more items came to mind. One however was an IDE thing more than a language thing, so just 2 items for the list today :) 29. Embrace declarative style coding VB led the</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: VB 10 thoughts (part 8)</title><link>http://msmvps.com/blogs/bill/archive/2007/10/12/vb-10-thoughts-part-8.aspx#1245827</link><pubDate>Sat, 13 Oct 2007 01:33:01 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1245827</guid><dc:creator>bill</dc:creator><description>&lt;p&gt;Hi Jim,&lt;/p&gt;
&lt;p&gt;AOP wasn't what I had in mind when talking about Declarative codign for VB, at least not in terms of how AOP is done today. Rather than interception or IL injection, I'm talking about compiler generated code, same as we have WithEvents.&lt;/p&gt;
&lt;p&gt;Admittedly the boundary between those is blurry, os perhaps a better example would be somethign where you indicate the backing storage, Field versus DependencyProperty, e.g:&lt;/p&gt;
&lt;p&gt;&amp;lt;Storage(DependencyProperty)&amp;gt; _&lt;/p&gt;
&lt;p&gt;Public Property Name As String&lt;/p&gt;
&lt;p&gt;Taking this one step further, you might decide that applies to all properties in your class, so rather than mark each property, you could mark the class:&lt;/p&gt;
&lt;p&gt;&amp;lt;Properties: Storage(DependencyProperty)&amp;gt; _&lt;/p&gt;
&lt;p&gt;Public Class Customer&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1245827" width="1" height="1"&gt;</description></item><item><title>re: VB 10 thoughts (part 8)</title><link>http://msmvps.com/blogs/bill/archive/2007/10/12/vb-10-thoughts-part-8.aspx#1244306</link><pubDate>Fri, 12 Oct 2007 13:08:31 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1244306</guid><dc:creator>Jim Wooley</dc:creator><description>&lt;p&gt;To a certain extent, the declaritive validation is already in the works in the Enterprise Library's Validation Application Block. There is a small push for more aspect oriented programming techniques which may take hold in future iterations of the product depending on demand.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1244306" width="1" height="1"&gt;</description></item></channel></rss>