<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>DevInstance</title>
	<atom:link href="http://devinstance.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://devinstance.wordpress.com</link>
	<description>Life should taste as good as it</description>
	<lastBuildDate>Sun, 22 Oct 2006 00:35:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='devinstance.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>DevInstance</title>
		<link>http://devinstance.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://devinstance.wordpress.com/osd.xml" title="DevInstance" />
	<atom:link rel='hub' href='http://devinstance.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The Abstract Factory Pattern</title>
		<link>http://devinstance.wordpress.com/2006/10/21/the-abstract-factory-pattern/</link>
		<comments>http://devinstance.wordpress.com/2006/10/21/the-abstract-factory-pattern/#comments</comments>
		<pubDate>Sun, 22 Oct 2006 00:35:54 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Cases]]></category>
		<category><![CDATA[Design Patterns]]></category>

		<guid isPermaLink="false">http://devinstance.wordpress.com/2006/10/21/the-abstract-factory-pattern/</guid>
		<description><![CDATA[I&#8217;ve worked in a project where I implemented an API based on an international standard called SCORM (it stands for Shareable Content Object Reference Model). It was developed to be used by e-learning systems and courses. While implementing the API, I needed to model some classes for the data types supported by SCORM version 1.2, keeping [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=13&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve worked in a project where I implemented an API based on an international standard called <a href="http://www.adlnet.gov/" title="ADLNet.gov">SCORM </a>(it stands for Shareable Content Object Reference Model). It was developed to be used by e-learning systems and courses. While implementing the API, I needed to model some classes for the data types supported by SCORM version 1.2, keeping in mind that they have some common attributes and specific validation methods. There are 15 different types, and all that classes (one for each type) in my diagram was bothering me.</p>
<p>Considering that all the classes derive from an abstract class named ScormObject, I&#8217;ve had the idea of using the <a href="http://en.wikipedia.org/wiki/Abstract_factory_pattern">Abstract Factory</a> Pattern. By doing this, I was able to put all that related validation code together into one &#8220;factory&#8221; class, turning the old classes into static subclasses inside the factory. This new class, named ScormObjectFactory, has methods for creating all the 15 types.  I&#8217;ve started coding the class as below (note that in this project I&#8217;ve used Java):</p>
<p><font face="Courier New"><font color="#bfbfbf"><br />
/**<br />
 * &lt;p&gt;Factory of ScormObjects, following the Abstract Factory pattern&lt;/p&gt;<br />
 *<br />
 * @version 1.1<br />
 */<br />
</font><br />
<font color="#0000ff"><strong>public class </strong></font>ScormObjectFactory {</font><font face="Courier New"><br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMIIDENTIFIER = 1;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMIBLANK = 2;<br />
  <font color="#0000ff"><strong>private static final int</strong></font> CMISTRING255 = 4;<br />
  <font color="#0000ff"><strong>private static final int</strong></font> CMISTRING4096 = 8;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMIINTEGER = 16;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMISINTEGER = 32;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMIDECIMAL = 64;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMITIME = 128;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMITIMESPAN = 256;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMIVOCABULARY = 512;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMISCORE = 1024;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMIAUDIO = 2048;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMISPEED = 4096;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMITEXT = 8192;<br />
  <font color="#0000ff"><strong>private static final int </strong></font>CMIFEEDBACK = 16384;<br />
}</font></p>
<p>Then, I&#8217;ve written a subclass for each one of the types. The code below is from the CMIIdentifier type implementation.</p>
<p><font face="Courier New"><font color="#bfbfbf"><br />
/**<br />
  * &lt;p&gt;This class extends ScormObject representing the CMIIdentifier type,<br />
  * and does the specific validation of this type.&lt;/p&gt;<br />
  *<br />
  * @version 1.1<br />
  */</font><br />
<font color="#0000ff"><strong>private static class </strong></font>ScormObjectCMIIdentifier <font color="#0000ff"><strong>extends </strong></font>ScormObject {<br />
  <font color="#0000ff"><strong>public </strong></font>ScormObjectCMIIdentifier() {<br />
   super();<br />
  }<br />
<font color="#bfbfbf"><br />
 /**<br />
   * &lt;p&gt;Checks if the info value is a valid CMIIdentifier.<br />
   *<br />
  * @return Returns true if the value is a valid CMIIdentifier.<br />
   */</font><br />
  <font color="#0000ff"><strong>public boolean</strong></font> validate(String info) {<br />
    <font color="#0000ff"><strong>if</strong></font>( info.indexOf(&#8221; &#8220;) != -1 || info.length() &gt; 255 || info.compareTo(&#8220;&#8221;) == 0 )<br />
      <font color="#0000ff"><strong>return false</strong></font>;<br />
    <font color="#0000ff"><strong>else</strong></font><br />
      <font color="#0000ff"><strong>return true</strong></font>;<br />
  }<br />
  <font color="#0000ff"><strong>public int </strong></font>getDataType(){<br />
    <font color="#0000ff"><strong>return </strong></font>CMIIDENTIFIER;<br />
  }<br />
}<br />
</font></p>
<p>Note that each type has its own implementation of the <font face="Courier New">validate</font>method. Finally, I create methods to turn the types public through the application code. See the example below for the CMIdentifier subclass.</p>
<p><font face="Courier New"><font color="#0000ff"><strong>public static </strong></font>ScormObjectCMIIdentifier createCMIIdentifier(){<br />
  <font color="#0000ff"><strong>return new </strong></font>ScormObjectCMIIdentifier();<br />
 }<br />
 </font><br />
Now, I can use the type anywhere in the code by calling the <font face="Courier New">ScormObjectFactory.createCMIIdentifier</font> method.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=13&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/10/21/the-abstract-factory-pattern/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>
	</item>
		<item>
		<title>The Singleton Pattern</title>
		<link>http://devinstance.wordpress.com/2006/10/19/the-singleton-pattern/</link>
		<comments>http://devinstance.wordpress.com/2006/10/19/the-singleton-pattern/#comments</comments>
		<pubDate>Thu, 19 Oct 2006 23:23:14 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Cases]]></category>
		<category><![CDATA[Design Patterns]]></category>

		<guid isPermaLink="false">http://devinstance.wordpress.com/2006/10/19/the-singleton-pattern/</guid>
		<description><![CDATA[As I already said, I like to study patterns that make common tasks easier. The Singleton pattern was the first that I got to know. It can be used when you need to ensure that some class has only one instance, providing a known method to give access to it. I frequently use this pattern [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=12&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I already <a target="_blank" href="http://devinstance.wordpress.com/2006/09/22/design-patterns-for-net/">said</a>, I like to study patterns that make common tasks easier. The Singleton pattern was the first that I got to know. It can be used when you need to ensure that some class has only one instance, providing a known method to give access to it.</p>
<p>I frequently use this pattern when I want to have a global configuration class in a project. This is a Config class example that I have used in one of the .NET projects I developed:</p>
<p><a href="http://devinstance.files.wordpress.com/2006/10/WindowsLiveWriter/TheSingletonPattern_11A42/code%5B5%5D.jpg"><img border="0" width="441" src="http://devinstance.files.wordpress.com/2006/10/WindowsLiveWriter/TheSingletonPattern_11A42/code_thumb%5B3%5D.jpg?w=441&#038;h=529" height="529" style="border:0;" /></a></p>
<p>Now I can access this class from anywhere in the code by using <font face="Courier New">Config.Instance()</font>. When I call this reference for the first time, all the data will be loaded by the private constructor, called by the Instance() method, and in the subsequent calls the unique instance will always be returned.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=12&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/10/19/the-singleton-pattern/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>

		<media:content url="http://devinstance.files.wordpress.com/2006/10/WindowsLiveWriter/TheSingletonPattern_11A42/code_thumb%5B3%5D.jpg" medium="image" />
	</item>
		<item>
		<title>Design Patterns for .NET</title>
		<link>http://devinstance.wordpress.com/2006/09/22/design-patterns-for-net/</link>
		<comments>http://devinstance.wordpress.com/2006/09/22/design-patterns-for-net/#comments</comments>
		<pubDate>Fri, 22 Sep 2006 11:46:30 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Design Patterns]]></category>

		<guid isPermaLink="false">http://devinstance.wordpress.com/2006/09/22/design-patterns-for-net/</guid>
		<description><![CDATA[Since my undergraduate course, I&#8217;ve always been interested in design patterns. In the university I used to study the GoF design patterns using Java, but since I&#8217;ve been working with Microsoft technology it would be good to have some examples using C# that don&#8217;t simply &#8216;translate&#8217; the code examples originally written for&#160;Java. It would be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=11&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since my undergraduate course, I&#8217;ve always been interested in design patterns. In the <a href="http://www.dcc.ufmg.br/" target="_blank">university</a> I used to study the <a href="http://en.wikipedia.org/wiki/Design_Patterns" target="_blank">GoF design patterns</a> using Java, but since I&#8217;ve been working with Microsoft technology it would be good to have some examples using C# that don&#8217;t simply &#8216;translate&#8217; the code examples originally written for&nbsp;Java. It would be great&nbsp;if someone&nbsp;consider finding some advantages of the C# language to use in the patterns implementation.</p>
<p>While <em>googling</em> a little bit I&#8217;ve found <a href="http://www.dofactory.com/Patterns/Patterns.aspx" target="_blank">this site</a> and bookmarked it forever. It has an example C# code implementation for each one of the GoF patterns and includes some .NET 2.0 optimized code (available for the <a href="http://www.dofactory.com/Patterns/PatternSingleton.aspx" target="_blank">Singleton</a> pattern). The site additionally includes the UML diagram&nbsp;for each pattern, that helps me to remember about the patterns that I don&#8217;t use frequently and to rewrite the code examples to fit better in my needs.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=11&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/09/22/design-patterns-for-net/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>
	</item>
		<item>
		<title>Finding references in Visual Studio &#8211; an annoying behavior</title>
		<link>http://devinstance.wordpress.com/2006/08/27/finding-references-in-visual-studio-an-annoying-problem/</link>
		<comments>http://devinstance.wordpress.com/2006/08/27/finding-references-in-visual-studio-an-annoying-problem/#comments</comments>
		<pubDate>Sun, 27 Aug 2006 22:20:04 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">http://devinstance.wordpress.com/2006/08/27/finding-references-in-visual-studio-an-annoying-problem/</guid>
		<description><![CDATA[A good tool from Visual Studio 2005 is the &#8220;Find all references&#8221; in the context menu. However, it has a annoying behavior in a common situation within my project. Suppose I have the A, B and C classes that implements the I interface, and that interface has declared a method named &#8220;save&#8221;. Now, I want [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=10&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A good tool from Visual Studio 2005 is the &#8220;Find all references&#8221; in the context menu. However, it has a annoying behavior in a common situation within my <a href="http://devinstance.wordpress.com/2006/08/12/dot-net-hungry/">project</a>.</p>
<p>Suppose I have the A, B and C classes that implements the I interface, and that interface has declared a method named &#8220;save&#8221;. Now, I want to know where in my code the method C.save() is called, and&nbsp;usually I would right-click the method name in the method definition at the C class and use the &#8220;Find all references&#8221; tool. However, if I do this, the Visual Studio tool will find all the references of any &#8220;save()&#8221; method of the project, even of the A or B classes.</p>
<p>The best behavior of this tool would be finding only the references of the &#8220;save()&#8221; method called from instances of the C class.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=10&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/08/27/finding-references-in-visual-studio-an-annoying-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>
	</item>
		<item>
		<title>A 3-tier model</title>
		<link>http://devinstance.wordpress.com/2006/08/19/a-3-tier-model/</link>
		<comments>http://devinstance.wordpress.com/2006/08/19/a-3-tier-model/#comments</comments>
		<pubDate>Sat, 19 Aug 2006 16:21:49 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Cases]]></category>

		<guid isPermaLink="false">http://devinstance.wordpress.com/2006/08/19/a-3-tier-model/</guid>
		<description><![CDATA[While developing my custom issue management system I have made an effort to make a 3-tier model, and here it is: Persistence: database related code. Business: code related to the system&#8217;s business logic such as entity operations (Users, Issues, Projects, relationships and so on), transition control (things to do when the state of an issue changes), [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=9&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While developing my custom issue management system I have made an effort to make a 3-tier model, and here it is:</p>
<ol>
<li>Persistence: database related code.</li>
<li>Business: code related to the system&#8217;s business logic such as entity operations (Users, Issues, Projects, relationships and so on), transition control (things to do when the state of an issue changes), access control (login, logout).</li>
<li>Interface: all code behind classes.</li>
</ol>
<p>There are some project principles that I tried to follow in the model:</p>
<ul>
<li>Keep cohesion in classes: each class should deal with only one subject.</li>
<li>One way communication between layers: the communication must occur only in a top-bottom way, assuming that the Interface is on top and the Persistence is on bottom. This means that Interface classes can use Business classes, but Business classes cannot use Interface classes. This is important because I can change the entire Interface layer without worrying about the Business and Persistence classes.</li>
</ul>
<p>I&#8217;ve decided not to use stored procedures, but dynamic SQL instead. This decision made me think about where&#8217;s the best place to store the SQL statements: the persistence layer classes or the business classes?</p>
<p>My opinion is that the classes from the business layer are the best place, and this is all about &#8220;subject&#8221;. If I create a class to store the statements in the persistence layer I&#8217;ll have a BIG class with code related to the whole system, dealing with many different subjects. This is often seen as a bad property of a class, that ideally should deal with only one subject to keep it easily maintainable.</p>
<p>By keeping the SQL statements in the business layer I&#8217;ll put these codes in the related classes. For example, the UPDATE statement that updates an user record in the database will be placed in the <font face="Courier New">save()</font> method of the <font face="Courier New">User</font> class. By doing this, I&#8217;ll not make the User class deal with a new subject since the above SQL statement is all about users.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=9&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/08/19/a-3-tier-model/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>
	</item>
		<item>
		<title>Refactoring with Visual Studio 2005</title>
		<link>http://devinstance.wordpress.com/2006/08/15/refactoring-with-visual-studio-2005/</link>
		<comments>http://devinstance.wordpress.com/2006/08/15/refactoring-with-visual-studio-2005/#comments</comments>
		<pubDate>Tue, 15 Aug 2006 15:11:25 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Refactoring]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Visual Studio 2005]]></category>

		<guid isPermaLink="false">https://devinstance.wordpress.com/2006/08/15/refactoring-with-visual-studio-2005/</guid>
		<description><![CDATA[I have started worrying about systems maintenance while working on my first BIG project, a virtual &#8220;classroom&#8221; for an e-learning solution. A great idea when dealing with this subject is to know more about refactoring, a technique that lets you change your code (with the purpose of getting it more simple or easier to understand) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=5&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have started worrying about systems maintenance while working on my first BIG project, a virtual &#8220;classroom&#8221; for an e-learning solution. A great idea when dealing with this subject is to know more about <a target="_blank" href="http://www.refactoring.com/">refactoring</a>, a technique that lets you change your code (with the purpose of getting it more simple or easier to understand) without changing its external behavior. The refactoring discipline has some common techniques that are well known like the &#8220;extract method&#8221;, that consists on identifying a source code snippet that is commonly used along the software and put it inside a new method.</p>
<p>The Visual Studio 2005 has the new &#8220;Refactor&#8221; feature, that help us implement some of the most used refactoring techniques. It is very simple to use: all you need to do is select the part of the code that you want to refactor and right-click and select the &#8220;refactor&#8221; submenu. This is shown below:</p>
<p align="center"><img width="128" src="http://devinstance.files.wordpress.com/2006/08/1.thumbnail.JPG?w=128&#038;h=93" alt="Refactor submenu" height="93" /></p>
<p>I think I don&#8217;t need to talk about renaming =) But this is very useful, much better than the old find-and-replace way.</p>
<p>You can use the <strong>extract method</strong> refactoring when you have a code snippet that is commonly used along the software code, resulting in duplicated logic. All you need to do is select the part of the code that represents this snippet and right-click selecting the Refactor &gt;&gt; Extract Method option. Then you define a name for the new method and click OK. You must take care about some issues:</p>
<ol>
<li>If the code snippet is used elsewhere, you will have to go there and change the code manually do use the new method.</li>
<li>Visual Studio will pass the scope variables used by the code snipped automatically to the new method. So, it&#8217;s a good practice to be more careful with side effects dealing with these variables, specially if the method will be used somewhere else.</li>
</ol>
<p>The <strong>encapsulate field</strong> option generates code for the get and set handlers of a given class field. This is useful, but would be better if the generated code was placed in a default #region snippet, resulting in a well organized code.</p>
<p>Look at the code below.</p>
<p><font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">class</font><font size="2"> </font><font size="2" color="#008080">Car</font><br />
{<br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">int</font><font size="2"> power;</font><br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">string</font><font size="2"> model;</font><br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">string</font><font size="2"> manufacturer;</font><br />
}</p>
<p>If we right click at each field and select Refactor &gt;&gt; Encapsulate field, the result will be this:</p>
<p><font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">class</font><font size="2"> </font><font size="2" color="#008080">Car</font><br />
{<br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">int</font><font size="2"> power;</font></p>
<p>   <font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">int</font><font size="2"> Power</font><br />
   {<br />
      <font size="2" color="#0000ff">get</font> { <font size="2" color="#0000ff">return</font><font size="2"> power;</font> }<br />
      <font size="2" color="#0000ff">set</font> { <font size="2">power = </font><font size="2" color="#0000ff">value</font>; }<br />
   }<br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">string</font><font size="2"> model;</font></p>
<p>   <font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">string</font><font size="2"> Model</font><br />
   {<br />
      <font size="2" color="#0000ff">get</font> { <font size="2" color="#0000ff">return</font><font size="2"> model;</font> }<br />
      <font size="2" color="#0000ff">set</font> { <font size="2">model = </font><font size="2" color="#0000ff">value</font>; }<br />
   }<br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">string</font><font size="2"> manufacturer;</font></p>
<p>   <font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">string</font><font size="2"> Manufacturer</font><br />
   {<br />
      <font size="2" color="#0000ff">get</font> { <font size="2" color="#0000ff">return</font><font size="2"> manufacturer;</font> }<br />
      <font size="2" color="#0000ff">set</font> { <font size="2">manufacturer = </font><font size="2" color="#0000ff">value</font>; }<br />
   }<br />
}</p>
<p>However, the code does not look good&#8230; It would be better if the generated code looked something like this:</p>
<p><font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">class</font><font size="2"> </font><font size="2" color="#008080">Car</font><br />
{<br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">int</font><font size="2"> power;</font><br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">string</font><font size="2"> model;</font><br />
   <font size="2" color="#0000ff">private</font> <font size="2" color="#0000ff">string</font><font size="2"> manufacturer;</font></p>
<p>   <font size="2" color="#0000ff">#region</font> <font size="2">Field access methods</font><br />
   <font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">int</font><font size="2"> Power</font><br />
   {<br />
      <font size="2" color="#0000ff">get</font> { <font size="2" color="#0000ff">return</font><font size="2"> power;</font> }<br />
      <font size="2" color="#0000ff">set</font> { <font size="2">power = </font><font size="2" color="#0000ff">value</font>; }<br />
   }<br />
   <font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">string</font><font size="2"> Model</font><br />
   {<br />
      <font size="2" color="#0000ff">get</font> { <font size="2" color="#0000ff">return</font><font size="2"> model;</font> }<br />
      <font size="2" color="#0000ff">set</font> { <font size="2">model = </font><font size="2" color="#0000ff">value</font>; }<br />
   }<br />
   <font size="2" color="#0000ff">public</font> <font size="2" color="#0000ff">string</font><font size="2"> Manufacturer</font><br />
   {<br />
      <font size="2" color="#0000ff">get</font> { <font size="2" color="#0000ff">return</font><font size="2"> manufacturer;</font> }<br />
      <font size="2" color="#0000ff">set</font> { <font size="2">manufacturer = </font><font size="2" color="#0000ff">value</font>; }<br />
   }<br />
   <font size="2" color="#0000ff">#endregionregion</font><br />
}</p>
<p>I did not use the other options of the Refactor submenu, but as soon as I use them I&#8217;ll post something about.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=5&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/08/15/refactoring-with-visual-studio-2005/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>

		<media:content url="http://devinstance.files.wordpress.com/2006/08/1.thumbnail.JPG" medium="image">
			<media:title type="html">Refactor submenu</media:title>
		</media:content>
	</item>
		<item>
		<title>Dot Net Hungry</title>
		<link>http://devinstance.wordpress.com/2006/08/12/dot-net-hungry/</link>
		<comments>http://devinstance.wordpress.com/2006/08/12/dot-net-hungry/#comments</comments>
		<pubDate>Sat, 12 Aug 2006 19:43:30 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Cases]]></category>

		<guid isPermaLink="false">https://devinstance.wordpress.com/2006/08/12/dot-net-hungry/</guid>
		<description><![CDATA[A few weeks ago, I&#8217;ve started my first solo .net project. It&#8217;s a issue management system with workflow functionality for keeping track of issues regarding to some projects of an IT company. These are the main requirements: Must control issues by project and customer. The users from the customers can only see the issues related to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=4&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago, I&#8217;ve started my first solo .net project. It&#8217;s a issue management system with workflow functionality for keeping track of issues regarding to some projects of an IT company. These are the main requirements:</p>
<ol>
<li>Must control issues by project and customer.</li>
<li>The users from the customers can only see the issues related to themselves (they can&#8217;t see all the issues from the project).</li>
<li>Transition control: the system must do some tasks when the issues state change in a flexible manner. Eg.: when some issue status change from &lt;any&gt; to closed, the system must send an e-mail notification to the customer or user that created it.</li>
<li>All issue information must be filtered for customers: they can&#8217;t see technical related information (this is important only for the tech staff), even in the system or e-mail notifications.</li>
<li>And something more that justity the development of a customized system and don&#8217;t adopting a popular issue management system like <a target="_blank" href="http://www.bugzilla.org/" title="BugZilla!">BugZilla!</a> or <a target="_blank" href="http://scarab.tigris.org/" title="Scarab">Scarab </a>(the company was using this system before the new one).</li>
</ol>
<p>There are two main objectives with this project: the first, I always wanted to develop a project that uses workflow concepts, and the second, I was wating for a chance to increase my .NET knowledge.</p>
<p>So, let&#8217;s see what happens!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=4&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/08/12/dot-net-hungry/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>
	</item>
		<item>
		<title>The blog name</title>
		<link>http://devinstance.wordpress.com/2006/08/12/the-blog-name/</link>
		<comments>http://devinstance.wordpress.com/2006/08/12/the-blog-name/#comments</comments>
		<pubDate>Sat, 12 Aug 2006 20:07:34 +0000</pubDate>
		<dc:creator>Ernani</dc:creator>
				<category><![CDATA[Blogroll]]></category>

		<guid isPermaLink="false">https://devinstance.wordpress.com/2006/08/12/the-blog-name/</guid>
		<description><![CDATA[At this time I&#8217;ll not talk about development =) I&#8217;m here only to thank Igor Ramadas for suggesting me a name for this blog. Thanks!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=3&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At this time I&#8217;ll not talk about development =)</p>
<p>I&#8217;m here only to thank <a target="_blank" href="http://devv.com/blog/" title="Igor's personal blog">Igor Ramadas </a>for suggesting me a name for this blog.</p>
<p>Thanks!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/devinstance.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/devinstance.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/devinstance.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/devinstance.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/devinstance.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/devinstance.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/devinstance.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/devinstance.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/devinstance.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/devinstance.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/devinstance.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/devinstance.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/devinstance.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/devinstance.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/devinstance.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/devinstance.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=devinstance.wordpress.com&amp;blog=351411&amp;post=3&amp;subd=devinstance&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://devinstance.wordpress.com/2006/08/12/the-blog-name/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dffcf27d68fef1ecf1a9d57fd4021e16?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Ernani</media:title>
		</media:content>
	</item>
	</channel>
</rss>
