<?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 bigdavedev.com</title>
	<atom:link href="http://bigdavedev.com/?feed=comments-rss2" rel="self" type="application/rss+xml" />
	<link>http://bigdavedev.com</link>
	<description></description>
	<lastBuildDate>Tue, 21 Dec 2010 19:48:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Comment on C++ does NOT need garbage collection! by Dave</title>
		<link>http://bigdavedev.com/?p=18#comment-5</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 21 Dec 2010 19:48:12 +0000</pubDate>
		<guid isPermaLink="false">http://bigdavedev.com/?p=18#comment-5</guid>
		<description>The vtable is definitely a slight drawback, but you can either rethink your inheritance structure, or use static functions as these are guaranteed to be available in constructor calls.  Alternatively, just code a solution that works best for you!

I don&#039;t understand why doing stuff in the constructor is bad for testability.  You can dump stuff to streams, you can step through them in debuggers.  I would be interested in hearing his views on it though!</description>
		<content:encoded><![CDATA[<p>The vtable is definitely a slight drawback, but you can either rethink your inheritance structure, or use static functions as these are guaranteed to be available in constructor calls.  Alternatively, just code a solution that works best for you!</p>
<p>I don&#8217;t understand why doing stuff in the constructor is bad for testability.  You can dump stuff to streams, you can step through them in debuggers.  I would be interested in hearing his views on it though!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on C++ does NOT need garbage collection! by Jonny H</title>
		<link>http://bigdavedev.com/?p=18#comment-4</link>
		<dc:creator>Jonny H</dc:creator>
		<pubDate>Tue, 21 Dec 2010 10:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://bigdavedev.com/?p=18#comment-4</guid>
		<description>Hey Dave!

Really liking the website.

RAII is definitely a usefull tool, especially when implementing various standard design patterns (the command pattern for instance). Something that doesn&#039;t work well with RAII though is inheritance and virtual methods. You can&#039;t really safely call a virtual method in the constructor/destructor because the vtable isn&#039;t fully constructed. Would you say that if you run into this issue then your RAII implimentation is flawed and needs redesigned?

I kept hearing Mark talk about doing stuff in the constructor as being bad for testability. I don&#039;t really know too much about that though, testing is for the weak! :P</description>
		<content:encoded><![CDATA[<p>Hey Dave!</p>
<p>Really liking the website.</p>
<p>RAII is definitely a usefull tool, especially when implementing various standard design patterns (the command pattern for instance). Something that doesn&#8217;t work well with RAII though is inheritance and virtual methods. You can&#8217;t really safely call a virtual method in the constructor/destructor because the vtable isn&#8217;t fully constructed. Would you say that if you run into this issue then your RAII implimentation is flawed and needs redesigned?</p>
<p>I kept hearing Mark talk about doing stuff in the constructor as being bad for testability. I don&#8217;t really know too much about that though, testing is for the weak! <img src='http://bigdavedev.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An effective game loop: Part 2 by An effective game loop: Part 1 &#187; BigDaveDev.com</title>
		<link>http://bigdavedev.com/?p=95#comment-10</link>
		<dc:creator>An effective game loop: Part 1 &#187; BigDaveDev.com</dc:creator>
		<pubDate>Mon, 25 Oct 2010 19:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://bigdavedev.com/?p=95#comment-10</guid>
		<description>[...] next article in this series will cover timing to keep consistent and smooth timing for your animations and [...]</description>
		<content:encoded><![CDATA[<p>[...] next article in this series will cover timing to keep consistent and smooth timing for your animations and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on An effective game loop: Part 1 by An effective game loop: Part 2 &#187; BigDaveDev.com</title>
		<link>http://bigdavedev.com/?p=58#comment-9</link>
		<dc:creator>An effective game loop: Part 2 &#187; BigDaveDev.com</dc:creator>
		<pubDate>Sat, 23 Oct 2010 13:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://bigdavedev.com/?p=58#comment-9</guid>
		<description>[...] part 1 we established our basic game loop for a Win32 system.  We discussed the two message retrieving [...]</description>
		<content:encoded><![CDATA[<p>[...] part 1 we established our basic game loop for a Win32 system.  We discussed the two message retrieving [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Memory leaks&#8230; by Dave</title>
		<link>http://bigdavedev.com/?p=43#comment-8</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sat, 04 Sep 2010 19:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://bigdavedev.com/?p=43#comment-8</guid>
		<description>Rory:  So instead of showing you the line where the memory was allocated, it shows the line where the pointer goes out of scope, causing the leak?  That&#039;s pretty handy indeed!  However, if you employ the RAII idiom, then the memory should be allocated within the constructor.  Thus you would simply need to add the appropriate delete to the destructor.

Scott: When I first discovered this, I was over the moon.  I have almost no leaks thanks to the RAII idiom, and it having the output tell me that my application is clean adds piece of mind.  It&#039;s either that or log all the memory allocation and deallocation!  No thanks hehe.</description>
		<content:encoded><![CDATA[<p>Rory:  So instead of showing you the line where the memory was allocated, it shows the line where the pointer goes out of scope, causing the leak?  That&#8217;s pretty handy indeed!  However, if you employ the RAII idiom, then the memory should be allocated within the constructor.  Thus you would simply need to add the appropriate delete to the destructor.</p>
<p>Scott: When I first discovered this, I was over the moon.  I have almost no leaks thanks to the RAII idiom, and it having the output tell me that my application is clean adds piece of mind.  It&#8217;s either that or log all the memory allocation and deallocation!  No thanks hehe.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

