<?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 on: The Const Nazi</title>
	<atom:link href="http://gamesfromwithin.com/the-const-nazi/feed" rel="self" type="application/rss+xml" />
	<link>http://gamesfromwithin.com/the-const-nazi</link>
	<description>Living the indie life</description>
	<lastBuildDate>Fri, 03 Feb 2012 14:30:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Noel</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7877</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Wed, 21 Jul 2010 21:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7877</guid>
		<description>That&#039;s because I&#039;m a const nazi, not a privacy nazi! :-)</description>
		<content:encoded><![CDATA[<p>That&#8217;s because I&#8217;m a const nazi, not a privacy nazi! <img src='http://gamesfromwithin.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reg</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7876</link>
		<dc:creator>Reg</dc:creator>
		<pubDate>Wed, 21 Jul 2010 21:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7876</guid>
		<description>You are a &quot;const nazi&quot; while not using classes at all? What a strange combination... I think declaring variables as private is much more important than const.</description>
		<content:encoded><![CDATA[<p>You are a &#8220;const nazi&#8221; while not using classes at all? What a strange combination&#8230; I think declaring variables as private is much more important than const.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill DeVoe</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7845</link>
		<dc:creator>Bill DeVoe</dc:creator>
		<pubDate>Tue, 20 Jul 2010 18:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7845</guid>
		<description>Loved this and I was very encouraged that you&#039;re using const. It&#039;s an easy concept, but readily overlooked in computer science classes. Most students never get exposed to it in school and only some shops actively encourage its use. It is, however, so important that it&#039;s item 3 in &quot;Effective C++&quot;. :)
Thanks for making the case and encouraging folks to use const where possible. Great advice!</description>
		<content:encoded><![CDATA[<p>Loved this and I was very encouraged that you&#8217;re using const. It&#8217;s an easy concept, but readily overlooked in computer science classes. Most students never get exposed to it in school and only some shops actively encourage its use. It is, however, so important that it&#8217;s item 3 in &#8220;Effective C++&#8221;. <img src='http://gamesfromwithin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks for making the case and encouraging folks to use const where possible. Great advice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noel</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7844</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Tue, 20 Jul 2010 14:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7844</guid>
		<description>Right now the only reason for me not to add const in the value function parameters is because I can&#039;t copy/paste between cpp and header file (or I can, but I bring all the ugly consts along with it). It might sound silly, but minimizing extra busy work is a big deal for me. I hate having to duplicate function signatures in the header and cpp files, so I&#039;m not about to start modifying them.

At some points in the past we had scripts to parse files and generate information or documentation or whatever. If the function declaraction and definition didn&#039;t match exactly, it would get all confused.</description>
		<content:encoded><![CDATA[<p>Right now the only reason for me not to add const in the value function parameters is because I can&#8217;t copy/paste between cpp and header file (or I can, but I bring all the ugly consts along with it). It might sound silly, but minimizing extra busy work is a big deal for me. I hate having to duplicate function signatures in the header and cpp files, so I&#8217;m not about to start modifying them.</p>
<p>At some points in the past we had scripts to parse files and generate information or documentation or whatever. If the function declaraction and definition didn&#8217;t match exactly, it would get all confused.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mg</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7842</link>
		<dc:creator>mg</dc:creator>
		<pubDate>Tue, 20 Jul 2010 14:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7842</guid>
		<description>MyObj const * const obj = Manager.GetObject( uuid );

or

const MyObj * const obj = Manager.GetObject( uuid );

or

const MyObj * obj = Manager.GetObject( uuid );


? :)</description>
		<content:encoded><![CDATA[<p>MyObj const * const obj = Manager.GetObject( uuid );</p>
<p>or</p>
<p>const MyObj * const obj = Manager.GetObject( uuid );</p>
<p>or</p>
<p>const MyObj * obj = Manager.GetObject( uuid );</p>
<p>? <img src='http://gamesfromwithin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seanba</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7795</link>
		<dc:creator>Seanba</dc:creator>
		<pubDate>Mon, 19 Jul 2010 03:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7795</guid>
		<description>Hi Noel, love the video - but then again I&#039;m another Const Nazi. :)

&quot;You could actually put the const only in the function definition and it will work...&quot;

This is my preferred method.

&quot;... but at that point the declaration and the definition are different&quot;

There&#039;s probably some finer points on that but I catch your drift.

&quot;... so you can’t copy and paste them or use other automated tools or scripts.&quot;

Just out of curiosity what kind of automated tools or scripts are you talking about here. I get you can&#039;t copy and paste the function signature between the defintion and declaration (which is over little concern to me) but what other tools/methodologies are undone by having const value types in the function defintion?

Great post, btw. Had a good laugh.</description>
		<content:encoded><![CDATA[<p>Hi Noel, love the video &#8211; but then again I&#8217;m another Const Nazi. <img src='http://gamesfromwithin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#8220;You could actually put the const only in the function definition and it will work&#8230;&#8221;</p>
<p>This is my preferred method.</p>
<p>&#8220;&#8230; but at that point the declaration and the definition are different&#8221;</p>
<p>There&#8217;s probably some finer points on that but I catch your drift.</p>
<p>&#8220;&#8230; so you can’t copy and paste them or use other automated tools or scripts.&#8221;</p>
<p>Just out of curiosity what kind of automated tools or scripts are you talking about here. I get you can&#8217;t copy and paste the function signature between the defintion and declaration (which is over little concern to me) but what other tools/methodologies are undone by having const value types in the function defintion?</p>
<p>Great post, btw. Had a good laugh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Knowing .NET &#187; Blog Archive &#187; Twitter Weekly Updates for 2010-07-18</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7793</link>
		<dc:creator>Knowing .NET &#187; Blog Archive &#187; Twitter Weekly Updates for 2010-07-18</dc:creator>
		<pubDate>Mon, 19 Jul 2010 02:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7793</guid>
		<description>[...] hates undisciplined C developers http://gamesfromwithin.com/the-const-nazi [...]</description>
		<content:encoded><![CDATA[<p>[...] hates undisciplined C developers <a href="http://gamesfromwithin.com/the-const-nazi" rel="nofollow">http://gamesfromwithin.com/the-const-nazi</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederic</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7740</link>
		<dc:creator>Frederic</dc:creator>
		<pubDate>Sat, 17 Jul 2010 04:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7740</guid>
		<description>I did a search for &quot;const&quot; in my current C# prototype out of curiosity: I really don&#039;t use it much at all, except for things that are seriously written in stone (such as a cube having &quot;const int vertexCount = 8;&quot; vertices).

The readonly keyword is useful when creating immutable structs.</description>
		<content:encoded><![CDATA[<p>I did a search for &#8220;const&#8221; in my current C# prototype out of curiosity: I really don&#8217;t use it much at all, except for things that are seriously written in stone (such as a cube having &#8220;const int vertexCount = 8;&#8221; vertices).</p>
<p>The readonly keyword is useful when creating immutable structs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noel</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7735</link>
		<dc:creator>Noel</dc:creator>
		<pubDate>Fri, 16 Jul 2010 23:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7735</guid>
		<description>@Jim, I think it&#039;s only a pain to make something const-correct if you&#039;re retrofitting it as an afterthought. If you find yourself changing something from const to non-const and having to propagate that, it probably means it&#039;s a very serious data flow change (and the compiler &quot;helps&quot; you along to find where your assumptions are now wrong).

@Ivan Asset, Yes, I completely agree that it&#039;s a pain having to have duplicate const/non-const functions sometimes. I wish there was an easy way around that (first one to mention templates or macros gets banned from posting anymore ;-b</description>
		<content:encoded><![CDATA[<p>@Jim, I think it&#8217;s only a pain to make something const-correct if you&#8217;re retrofitting it as an afterthought. If you find yourself changing something from const to non-const and having to propagate that, it probably means it&#8217;s a very serious data flow change (and the compiler &#8220;helps&#8221; you along to find where your assumptions are now wrong).</p>
<p>@Ivan Asset, Yes, I completely agree that it&#8217;s a pain having to have duplicate const/non-const functions sometimes. I wish there was an easy way around that (first one to mention templates or macros gets banned from posting anymore ;-b</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ivanassen</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7734</link>
		<dc:creator>ivanassen</dc:creator>
		<pubDate>Fri, 16 Jul 2010 23:03:51 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7734</guid>
		<description>What Jim Tilander said.

What leaves a bad taste in my mouth is when I have to duplicate methods (or const_cast, which is equally disgusting) to satisfy the inner Hitler. E.g. two world query functions, one of them returning const pointers to objects in range, the other returning mutable pointers.</description>
		<content:encoded><![CDATA[<p>What Jim Tilander said.</p>
<p>What leaves a bad taste in my mouth is when I have to duplicate methods (or const_cast, which is equally disgusting) to satisfy the inner Hitler. E.g. two world query functions, one of them returning const pointers to objects in range, the other returning mutable pointers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: obfuscatd</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7733</link>
		<dc:creator>obfuscatd</dc:creator>
		<pubDate>Fri, 16 Jul 2010 20:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7733</guid>
		<description>You&#039;re missing the const Type &amp;var = TemporaryGenerator(...) case

http://herbsutter.spaces.live.com/blog/cns!2D4327CC297151BB!378.entry</description>
		<content:encoded><![CDATA[<p>You&#8217;re missing the const Type &amp;var = TemporaryGenerator(&#8230;) case</p>
<p><a href="http://herbsutter.spaces.live.com/blog/cns!2D4327CC297151BB!378.entry" rel="nofollow">http://herbsutter.spaces.live.com/blog/cns!2D4327CC297151BB!378.entry</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loup Vaillant</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7725</link>
		<dc:creator>Loup Vaillant</dc:creator>
		<pubDate>Fri, 16 Jul 2010 15:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7725</guid>
		<description>If I may, you could also try to cut the root of the problem: the assignment statement itself: http://www.loup-vaillant.fr/tutorials/avoid-assignment

Doesn&#039;t work very well in C++, but as soon as you have a Garbage Collector, nearly everything can be `const`.</description>
		<content:encoded><![CDATA[<p>If I may, you could also try to cut the root of the problem: the assignment statement itself: <a href="http://www.loup-vaillant.fr/tutorials/avoid-assignment" rel="nofollow">http://www.loup-vaillant.fr/tutorials/avoid-assignment</a></p>
<p>Doesn&#8217;t work very well in C++, but as soon as you have a Garbage Collector, nearly everything can be `const`.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominik Grabiec</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7720</link>
		<dc:creator>Dominik Grabiec</dc:creator>
		<pubDate>Fri, 16 Jul 2010 05:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7720</guid>
		<description>Well if you changed all variables to be const by default you&#039;d be making C/C++ into a more functional type language. Since in general variables in a functional language - if they exist at all - are a write-once read-many thing. You essentially bind a value to a name, which is what you&#039;re doing with making the local variables const. Coincidentally also what you&#039;re doing when making functions const, and function parameters const.</description>
		<content:encoded><![CDATA[<p>Well if you changed all variables to be const by default you&#8217;d be making C/C++ into a more functional type language. Since in general variables in a functional language &#8211; if they exist at all &#8211; are a write-once read-many thing. You essentially bind a value to a name, which is what you&#8217;re doing with making the local variables const. Coincidentally also what you&#8217;re doing when making functions const, and function parameters const.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christer Ericson</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7718</link>
		<dc:creator>Christer Ericson</dc:creator>
		<pubDate>Fri, 16 Jul 2010 03:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7718</guid>
		<description>consts are from hell!</description>
		<content:encoded><![CDATA[<p>consts are from hell!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Tilander</title>
		<link>http://gamesfromwithin.com/the-const-nazi/comment-page-1#comment-7717</link>
		<dc:creator>Jim Tilander</dc:creator>
		<pubDate>Fri, 16 Jul 2010 03:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://gamesfromwithin.com/?p=996#comment-7717</guid>
		<description>I think both me and Charles can attest to many days spent going down the rabbit hole, chasing the const correctness pipe dream. &quot;Hm, this one thing could be const. Ops, couple of compile errors. Let me fix those. Hm, some more compile errors. Sigh, let me fix those. Ahhhrrg! I did nothing today but fix const in the codebase. What was I doing again?&quot; :)

But I gotta agree, it gives me some kind of OCD satisfaction to fix them. Wonder if there is a trophy somewhere?</description>
		<content:encoded><![CDATA[<p>I think both me and Charles can attest to many days spent going down the rabbit hole, chasing the const correctness pipe dream. &#8220;Hm, this one thing could be const. Ops, couple of compile errors. Let me fix those. Hm, some more compile errors. Sigh, let me fix those. Ahhhrrg! I did nothing today but fix const in the codebase. What was I doing again?&#8221; <img src='http://gamesfromwithin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>But I gotta agree, it gives me some kind of OCD satisfaction to fix them. Wonder if there is a trophy somewhere?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

