<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Code of Doom</title>
	<atom:link href="http://codeofdoom.com/wordpress/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeofdoom.com/wordpress</link>
	<description></description>
	<lastBuildDate>Sat, 06 Mar 2010 06:26:27 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Learn This: When to use an Abstract Class and an Interface by maddy</title>
		<link>http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/comment-page-1/#comment-320</link>
		<dc:creator>maddy</dc:creator>
		<pubDate>Sat, 06 Mar 2010 06:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=146#comment-320</guid>
		<description>very nicly...described...will u please demostrate  OBJECT VS INSTANCE .AND object vs object variable . instance vs instance variable</description>
		<content:encoded><![CDATA[<p>very nicly&#8230;described&#8230;will u please demostrate  OBJECT VS INSTANCE .AND object vs object variable . instance vs instance variable</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Learn This: When to use an Abstract Class and an Interface by imustbedumbthen</title>
		<link>http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/comment-page-1/#comment-318</link>
		<dc:creator>imustbedumbthen</dc:creator>
		<pubDate>Thu, 04 Mar 2010 17:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=146#comment-318</guid>
		<description>well, i guess you wouldn&#039;t hire me. ive been developing elegant yet sophisticated intra/internet apps that incorporate plenty of OO-design for 10 years and never found it practical to use interfaces in more than a few instances.

i was asked this question once, and resented it. its for a college kid just out of CS101, not proven professionals. unless you are a coder of advanced gaming and/or AI systems you BETTER NOT be spending so much time contemplating interface VS abstract. if i was your boss i would NOT be happy.

i am willing to bet most if you are web developers for backoffice business process automation systems and NOTHING more advanced than that. to feel the need to use such advanced OO concepts is overkill and over-coding. just make sure you follow good agile patterns, proper namespacing and standards, and enforce it accross the team, and you will have successful projects.</description>
		<content:encoded><![CDATA[<p>well, i guess you wouldn&#8217;t hire me. ive been developing elegant yet sophisticated intra/internet apps that incorporate plenty of OO-design for 10 years and never found it practical to use interfaces in more than a few instances.</p>
<p>i was asked this question once, and resented it. its for a college kid just out of CS101, not proven professionals. unless you are a coder of advanced gaming and/or AI systems you BETTER NOT be spending so much time contemplating interface VS abstract. if i was your boss i would NOT be happy.</p>
<p>i am willing to bet most if you are web developers for backoffice business process automation systems and NOTHING more advanced than that. to feel the need to use such advanced OO concepts is overkill and over-coding. just make sure you follow good agile patterns, proper namespacing and standards, and enforce it accross the team, and you will have successful projects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BlazeDS Data push with Remote Objects by Miral</title>
		<link>http://codeofdoom.com/wordpress/2009/01/29/blazeds-data-push-with-remote-objects/comment-page-1/#comment-317</link>
		<dc:creator>Miral</dc:creator>
		<pubDate>Wed, 03 Mar 2010 05:58:16 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=61#comment-317</guid>
		<description>Hi,
It indeed is a nice article. 

Can you please also demonstrate if we want to use Spring-Blazeds integration for the same purpose, what will be the changes to be done in spring context file? (Because messaging-config.xml will no longer exist)

Miral</description>
		<content:encoded><![CDATA[<p>Hi,<br />
It indeed is a nice article. </p>
<p>Can you please also demonstrate if we want to use Spring-Blazeds integration for the same purpose, what will be the changes to be done in spring context file? (Because messaging-config.xml will no longer exist)</p>
<p>Miral</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Intro to Google Maps API for Flex: Part 2 by manu</title>
		<link>http://codeofdoom.com/wordpress/2009/03/09/intro-to-google-maps-api-for-flex-part-2/comment-page-1/#comment-316</link>
		<dc:creator>manu</dc:creator>
		<pubDate>Sat, 27 Feb 2010 02:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=297#comment-316</guid>
		<description>this is great, just what I was looking for</description>
		<content:encoded><![CDATA[<p>this is great, just what I was looking for</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Learn This: When to use an Abstract Class and an Interface by Christopher Stevens</title>
		<link>http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/comment-page-1/#comment-315</link>
		<dc:creator>Christopher Stevens</dc:creator>
		<pubDate>Tue, 23 Feb 2010 20:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=146#comment-315</guid>
		<description>I am a professional developer for over 20 years with strong object oriented skills and designs.  I agree with Shaun.  I would definitely stare back at the interviewer like DUH--if you don&#039;t understand how complex this is, then I am just going to give you the canned answer becasue that&#039;s probably what you want (because by asking this question you don&#039;t really understand the nuances of interface design).

Here is the basic problem with asking the question as written on this site.  IT IS LANGUAGE SPECIFIC.   The &quot;concept&quot; of abstract versus interface is different depending on the language you are using.  A good  CS Programming Languages course will make you appreciate that.  This question is very theoretical.    For example in C++ the distinction is very minimal and very context oriented--in C++ an &quot;interface&quot; is an abstract class which provides no implementation, has no members, and no constructor.  But to Anil&#039;s point, what if I had a class with 1000 members on it.  I could code an abstract class with default implementations and use that--in C++ this can still be used effectively as an interface.  There are some other subtle complexities with interfaces and template design in C++, but I won&#039;t go into that here.

However, move to C#.  The same is not true.  Why?  Because in C# the langauge only supports single inheritance, thus if you use an abstract base then you cannot offer any more interfaces--or rather you are stuck with a fat interface.   Since fat interfaces (i.e. putting all service methods into one class) is generally not a good practice we would like to separate out our interfaces based on the services they provide--the only way to do this in C# is through an interface. (A class can only extend a single base class whereas it can implement multiple interfaces; contrast to C++ a class can implement many base classes).

Thus the answer to your question is &quot;it depends.&quot;  What are our use cases?  What is our language we are coding in?  What runtime dependencies do the syntactical constructs impose?  What is the design goal behind class abstraction? based on these considerations, then I could answer why I would use one versus the other.  In my experience most developers can&#039;t properly code an interface without suffering from some unexpected coupling issues.

Choosing to use an interface as a design construct should be a well thought out and thorough examination of how the code/class will behave.</description>
		<content:encoded><![CDATA[<p>I am a professional developer for over 20 years with strong object oriented skills and designs.  I agree with Shaun.  I would definitely stare back at the interviewer like DUH&#8211;if you don&#8217;t understand how complex this is, then I am just going to give you the canned answer becasue that&#8217;s probably what you want (because by asking this question you don&#8217;t really understand the nuances of interface design).</p>
<p>Here is the basic problem with asking the question as written on this site.  IT IS LANGUAGE SPECIFIC.   The &#8220;concept&#8221; of abstract versus interface is different depending on the language you are using.  A good  CS Programming Languages course will make you appreciate that.  This question is very theoretical.    For example in C++ the distinction is very minimal and very context oriented&#8211;in C++ an &#8220;interface&#8221; is an abstract class which provides no implementation, has no members, and no constructor.  But to Anil&#8217;s point, what if I had a class with 1000 members on it.  I could code an abstract class with default implementations and use that&#8211;in C++ this can still be used effectively as an interface.  There are some other subtle complexities with interfaces and template design in C++, but I won&#8217;t go into that here.</p>
<p>However, move to C#.  The same is not true.  Why?  Because in C# the langauge only supports single inheritance, thus if you use an abstract base then you cannot offer any more interfaces&#8211;or rather you are stuck with a fat interface.   Since fat interfaces (i.e. putting all service methods into one class) is generally not a good practice we would like to separate out our interfaces based on the services they provide&#8211;the only way to do this in C# is through an interface. (A class can only extend a single base class whereas it can implement multiple interfaces; contrast to C++ a class can implement many base classes).</p>
<p>Thus the answer to your question is &#8220;it depends.&#8221;  What are our use cases?  What is our language we are coding in?  What runtime dependencies do the syntactical constructs impose?  What is the design goal behind class abstraction? based on these considerations, then I could answer why I would use one versus the other.  In my experience most developers can&#8217;t properly code an interface without suffering from some unexpected coupling issues.</p>
<p>Choosing to use an interface as a design construct should be a well thought out and thorough examination of how the code/class will behave.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Learn This: When to use an Abstract Class and an Interface by anil deshpande</title>
		<link>http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/comment-page-1/#comment-313</link>
		<dc:creator>anil deshpande</dc:creator>
		<pubDate>Mon, 22 Feb 2010 16:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=146#comment-313</guid>
		<description>If an interface has 1000 methods then implementing class should implement all those 1000 methods ...How do we avoid this situation of
implementing those 1000 methods ...This is a question I ask in every interview</description>
		<content:encoded><![CDATA[<p>If an interface has 1000 methods then implementing class should implement all those 1000 methods &#8230;How do we avoid this situation of<br />
implementing those 1000 methods &#8230;This is a question I ask in every interview</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Learn This: When to use an Abstract Class and an Interface by Preeti</title>
		<link>http://codeofdoom.com/wordpress/2009/02/12/learn-this-when-to-use-an-abstract-class-and-an-interface/comment-page-1/#comment-312</link>
		<dc:creator>Preeti</dc:creator>
		<pubDate>Sun, 21 Feb 2010 15:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=146#comment-312</guid>
		<description>Basically Use Interface when 
1) You want to make a contract/force all the concrete subclasses to implement methods of interface.
2) Use abstract class when you want to provide/force some functionality your self, and remaining subclasses can provide. One of the good example is template pattern where the base class/abstract class has a final method(which provides the template) and other methods are abstract, so all subclasses can override the abstract methods but they are forced to use the final method of the superclass.</description>
		<content:encoded><![CDATA[<p>Basically Use Interface when<br />
1) You want to make a contract/force all the concrete subclasses to implement methods of interface.<br />
2) Use abstract class when you want to provide/force some functionality your self, and remaining subclasses can provide. One of the good example is template pattern where the base class/abstract class has a final method(which provides the template) and other methods are abstract, so all subclasses can override the abstract methods but they are forced to use the final method of the superclass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on BlazeDS Data push with Remote Objects by Sankar Kethineni</title>
		<link>http://codeofdoom.com/wordpress/2009/01/29/blazeds-data-push-with-remote-objects/comment-page-1/#comment-311</link>
		<dc:creator>Sankar Kethineni</dc:creator>
		<pubDate>Fri, 19 Feb 2010 07:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=61#comment-311</guid>
		<description>Hello,

Nice article! It helped me a lot.How can we achieve this by taking the consumer id as a request parameter for example, a module which gets &amp; displays the messages that you got from the friends( for all the consumers who were logged into the application currently).

 Am trying to set the consumer id as part of the AsyncMessage body, as shown below

     var message:AsyncMessage = new AsyncMessage();
     //message.body = &quot;New&quot;;
     var consumerRequestObject:Object = new Object();     
     consumerRequestObject.consumerId = consumerId;
     message.body = consumerRequestObject;
     producer.send(message);

  and i don&#039;t know exactly where to make changes in the business logic of invoke() and in other places of ServiceAdapter class.

  Hope understood the problem &amp; hoping that some one will help me in this.Any help would be appreciated!!!.

  If you need more information about this requirement, please feel free to drop me a mail(yuvarajsingh2020@yahoo.com).

 Thanks
 Sankar Kethineni.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Nice article! It helped me a lot.How can we achieve this by taking the consumer id as a request parameter for example, a module which gets &amp; displays the messages that you got from the friends( for all the consumers who were logged into the application currently).</p>
<p> Am trying to set the consumer id as part of the AsyncMessage body, as shown below</p>
<p>     var message:AsyncMessage = new AsyncMessage();<br />
     //message.body = &#8220;New&#8221;;<br />
     var consumerRequestObject:Object = new Object();<br />
     consumerRequestObject.consumerId = consumerId;<br />
     message.body = consumerRequestObject;<br />
     producer.send(message);</p>
<p>  and i don&#8217;t know exactly where to make changes in the business logic of invoke() and in other places of ServiceAdapter class.</p>
<p>  Hope understood the problem &amp; hoping that some one will help me in this.Any help would be appreciated!!!.</p>
<p>  If you need more information about this requirement, please feel free to drop me a mail(yuvarajsingh2020@yahoo.com).</p>
<p> Thanks<br />
 Sankar Kethineni.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on How and when to use Singleton classes by LearningCoder</title>
		<link>http://codeofdoom.com/wordpress/2008/04/20/how-and-when-to-use-singleton-classes/comment-page-1/#comment-310</link>
		<dc:creator>LearningCoder</dc:creator>
		<pubDate>Thu, 18 Feb 2010 13:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=4#comment-310</guid>
		<description>For a full fledged implementation clone() should also be overriden and cloneNotSupportedException should be thrown.</description>
		<content:encoded><![CDATA[<p>For a full fledged implementation clone() should also be overriden and cloneNotSupportedException should be thrown.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Twitter-Google Maps Mashup by j</title>
		<link>http://codeofdoom.com/wordpress/2009/04/26/twittergoogle-maps-mashup/comment-page-1/#comment-309</link>
		<dc:creator>j</dc:creator>
		<pubDate>Sat, 13 Feb 2010 08:06:19 +0000</pubDate>
		<guid isPermaLink="false">http://codeofdoom.com/wordpress/?p=457#comment-309</guid>
		<description>I tried copying your the folders in your com directory to the com folder in my project, but none of the components come through to my project. What could be wrong?</description>
		<content:encoded><![CDATA[<p>I tried copying your the folders in your com directory to the com folder in my project, but none of the components come through to my project. What could be wrong?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 1.223 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-10 11:18:14 -->
