<?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 Codebloat</title>
	<atom:link href="http://www.codebloat.net/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codebloat.net</link>
	<description>Programming software technology.</description>
	<lastBuildDate>Sun, 26 Feb 2012 14:59:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Using ARP Poisoning to Create an Ad-Hoc Firewall &#8211; Part 1: The Strategy by Ståle Zerener Haugnæss</title>
		<link>http://www.codebloat.net/2011/09/using-arp-poisoning-to-create-an-ad-hoc-firewall-part-1-the-strategy/#comment-236</link>
		<dc:creator>Ståle Zerener Haugnæss</dc:creator>
		<pubDate>Sun, 26 Feb 2012 14:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.codebloat.net/?p=18#comment-236</guid>
		<description>Using iptables is definitely the only sane thing to do when doing this. The only reason why I&#039;m not using iptables is because I wanted to write this thing from scratch, but in any real-life scenario I would definitely use iptables. :-)</description>
		<content:encoded><![CDATA[<p>Using iptables is definitely the only sane thing to do when doing this. The only reason why I&#8217;m not using iptables is because I wanted to write this thing from scratch, but in any real-life scenario I would definitely use iptables. <img src='http://www.codebloat.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Democracy and the Internet by Bruce Dietzen</title>
		<link>http://www.codebloat.net/2011/10/democracy-and-the-internet/#comment-217</link>
		<dc:creator>Bruce Dietzen</dc:creator>
		<pubDate>Sun, 19 Feb 2012 23:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.codebloat.net/?p=379#comment-217</guid>
		<description>Håkon, assuming that for the immediate future, we have to work within the confines of existing representative plutocracy, I believe that via an effective app and social media, we the people can have far more influence on elections than we now have. In short, the app would allow candidates to pledge to vote for legislation suppoted by the majority of citizens. Citizens could then view which candidates have done so and which have not. Whenever they pledge their vote for a candidate, their pledge is shared on facebook and google plus. Most incumbent Federal representatives will likely refuse to take these pledges, but the &quot;not yet corrupted&quot; candidates should jump on it. A simple polling app like this is just the start. If you are interested in discussing this further let me know. Regards...Bruce</description>
		<content:encoded><![CDATA[<p>Håkon, assuming that for the immediate future, we have to work within the confines of existing representative plutocracy, I believe that via an effective app and social media, we the people can have far more influence on elections than we now have. In short, the app would allow candidates to pledge to vote for legislation suppoted by the majority of citizens. Citizens could then view which candidates have done so and which have not. Whenever they pledge their vote for a candidate, their pledge is shared on facebook and google plus. Most incumbent Federal representatives will likely refuse to take these pledges, but the &#8220;not yet corrupted&#8221; candidates should jump on it. A simple polling app like this is just the start. If you are interested in discussing this further let me know. Regards&#8230;Bruce</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using ARP Poisoning to Create an Ad-Hoc Firewall &#8211; Part 1: The Strategy by John Hanson</title>
		<link>http://www.codebloat.net/2011/09/using-arp-poisoning-to-create-an-ad-hoc-firewall-part-1-the-strategy/#comment-209</link>
		<dc:creator>John Hanson</dc:creator>
		<pubDate>Sat, 18 Feb 2012 07:57:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.codebloat.net/?p=18#comment-209</guid>
		<description>I am thinking about doing this same thing but with a machine loaded with snort and the proper iptables rules to make an IPS using arp spoofing</description>
		<content:encoded><![CDATA[<p>I am thinking about doing this same thing but with a machine loaded with snort and the proper iptables rules to make an IPS using arp spoofing</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on While or For? A Comment On Code Entropy by Antonio Pérez</title>
		<link>http://www.codebloat.net/2011/10/while-or-for-a-comment-on-code-entropy/#comment-25</link>
		<dc:creator>Antonio Pérez</dc:creator>
		<pubDate>Sun, 16 Oct 2011 09:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.codebloat.net/?p=302#comment-25</guid>
		<description>I&#039;m not into using C++0x for production code yet, so I only use &lt;code&gt;std::for_each&lt;/code&gt; for very simple operations. When I have to do some more complex things inside the loop, I have sometimes tried out creating a local functor and use &lt;code&gt;std::for_each&lt;/code&gt;, but the approach is not so clear, since the functor has to be defined before the loop:

&lt;code&gt;
std::vector v;

struct Operations
{
  void operator()(int i)
  {
    // Actual operations
  }
}
std::for_each(v.begin(), v.end(), Operations());
&lt;/code&gt;

Given that I use this kind of loops when the operations to be performed in each iteration are more than a couple of statements, and that I try to keep my methods short, the surrounding scope of the loop is quite small in most cases. So I would sacrifice the good practice of not leaking variables into surrounding scope for the sake of readability.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not into using C++0x for production code yet, so I only use <code>std::for_each</code> for very simple operations. When I have to do some more complex things inside the loop, I have sometimes tried out creating a local functor and use <code>std::for_each</code>, but the approach is not so clear, since the functor has to be defined before the loop:</p>
<p><code><br />
std::vector v;</p>
<p>struct Operations<br />
{<br />
  void operator()(int i)<br />
  {<br />
    // Actual operations<br />
  }<br />
}<br />
std::for_each(v.begin(), v.end(), Operations());<br />
</code></p>
<p>Given that I use this kind of loops when the operations to be performed in each iteration are more than a couple of statements, and that I try to keep my methods short, the surrounding scope of the loop is quite small in most cases. So I would sacrifice the good practice of not leaking variables into surrounding scope for the sake of readability.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on While or For? A Comment On Code Entropy by Lars Storjord</title>
		<link>http://www.codebloat.net/2011/10/while-or-for-a-comment-on-code-entropy/#comment-24</link>
		<dc:creator>Lars Storjord</dc:creator>
		<pubDate>Tue, 11 Oct 2011 09:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.codebloat.net/?p=302#comment-24</guid>
		<description>For standard containers in C++, I&#039;d prefer using &lt;code&gt;std::for_each&lt;/code&gt; and lambdas, assuming C++0x is an option. Of the two snippets shown in your post, the &lt;code&gt;while&lt;/code&gt; is definitely more readable. An interesting question in this case is whether readability or good practice (not leaking variables into surrounding scope) should take priority. What do you think?</description>
		<content:encoded><![CDATA[<p>For standard containers in C++, I&#8217;d prefer using <code>std::for_each</code> and lambdas, assuming C++0x is an option. Of the two snippets shown in your post, the <code>while</code> is definitely more readable. An interesting question in this case is whether readability or good practice (not leaking variables into surrounding scope) should take priority. What do you think?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

