<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<feed xmlns="http://www.w3.org/2005/Atom">

	<title>Planet HSR Comments</title>
	<link rel="self" href="http://planet-hsr.ch/atom.xml"/>
	<link href="http://planet-hsr.ch/comments"/>
	<id>http://planet-hsr.ch/atom.xml</id>
	<updated>2012-05-19T09:30:32+00:00</updated>
	<generator uri="http://www.planetplanet.org/">Planet/2.0 +http://www.planetplanet.org</generator>

	<entry>
		<title type="html">Comment on Detecting and Naming Boolean Parameters by Mirco Dotta</title>
		<link href="http://misto.ch/detecting-and-naming-boolean-parameters/comment-page-1/#comment-231"/>
		<id>http://misto.ch/?p=404#comment-231</id>
		<updated>2012-05-08T10:14:19+00:00</updated>
		<content type="html">&lt;p&gt;It may be nice to also have a Quick Fix that introduce a method, i.e.,&lt;/p&gt;
&lt;p&gt;def forceDoSomething() = doSomething(force = true)&lt;/p&gt;
&lt;p&gt;Just saying &lt;img src=&quot;http://misto.ch/wp-includes/images/smilies/icon_smile.gif&quot; alt=&quot;:-)&quot; class=&quot;wp-smiley&quot; /&gt; &lt;/p&gt;</content>
		<author>
			<name>Mirko Stocker</name>
			<uri>http://misto.ch</uri>
		</author>
		<source>
			<title type="html">Comments for Mirko Stocker's Blog</title>
			<link rel="self" href="http://misto.ch/comments/feed/"/>
			<id>http://misto.ch/comments/feed/</id>
			<updated>2012-05-08T08:15:35+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Comment on Detecting and Naming Boolean Parameters by Mirko Stocker</title>
		<link href="http://misto.ch/detecting-and-naming-boolean-parameters/comment-page-1/#comment-230"/>
		<id>http://misto.ch/?p=404#comment-230</id>
		<updated>2012-05-07T16:49:49+00:00</updated>
		<content type="html">&lt;p&gt;Oh, three Ints are just as bad &lt;img src=&quot;http://misto.ch/wp-includes/images/smilies/icon_smile.gif&quot; alt=&quot;:-)&quot; class=&quot;wp-smiley&quot; /&gt;  in my experience, boolean parameters are typically introduced if a method can be used to do two different things, depending on that boolean flag. That&lt;/p&gt;
&lt;p&gt;In Qt, they call this the Boolean Parameter Trap: &lt;a href=&quot;http://doc.trolltech.com/qq/qq13-apis.html#thebooleanparametertrap&quot; rel=&quot;nofollow&quot;&gt;http://doc.trolltech.com/qq/qq13-apis.html#thebooleanparametertrap&lt;/a&gt;&lt;/p&gt;</content>
		<author>
			<name>Mirko Stocker</name>
			<uri>http://misto.ch</uri>
		</author>
		<source>
			<title type="html">Comments for Mirko Stocker's Blog</title>
			<link rel="self" href="http://misto.ch/comments/feed/"/>
			<id>http://misto.ch/comments/feed/</id>
			<updated>2012-05-08T08:15:35+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Comment on Detecting and Naming Boolean Parameters by Jesper Nordenberg</title>
		<link href="http://misto.ch/detecting-and-naming-boolean-parameters/comment-page-1/#comment-229"/>
		<id>http://misto.ch/?p=404#comment-229</id>
		<updated>2012-05-07T16:37:43+00:00</updated>
		<content type="html">&lt;p&gt;I fail to see why for example having a method taking three boolean parameters is necessarily more confusing to use than one taking three int parameters.&lt;/p&gt;</content>
		<author>
			<name>Mirko Stocker</name>
			<uri>http://misto.ch</uri>
		</author>
		<source>
			<title type="html">Comments for Mirko Stocker's Blog</title>
			<link rel="self" href="http://misto.ch/comments/feed/"/>
			<id>http://misto.ch/comments/feed/</id>
			<updated>2012-05-08T08:15:35+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Comment on Detecting and Naming Boolean Parameters by Mirko Stocker</title>
		<link href="http://misto.ch/detecting-and-naming-boolean-parameters/comment-page-1/#comment-228"/>
		<id>http://misto.ch/?p=404#comment-228</id>
		<updated>2012-05-07T16:01:10+00:00</updated>
		<content type="html">&lt;p&gt;Do you mean why the quickfix is only available for booleans or why boolean arguments shouldn&amp;#8217;t be used in APIs? First, I should really make that available for all parameters, that&amp;#8217;s a good point &lt;img src=&quot;http://misto.ch/wp-includes/images/smilies/icon_smile.gif&quot; alt=&quot;:-)&quot; class=&quot;wp-smiley&quot; /&gt;  For why they&amp;#8217;re bad in API, it just makes it really hard to use, it&amp;#8217;s often better to use an enum or two separate methods.&lt;/p&gt;</content>
		<author>
			<name>Mirko Stocker</name>
			<uri>http://misto.ch</uri>
		</author>
		<source>
			<title type="html">Comments for Mirko Stocker's Blog</title>
			<link rel="self" href="http://misto.ch/comments/feed/"/>
			<id>http://misto.ch/comments/feed/</id>
			<updated>2012-05-08T08:15:35+00:00</updated>
		</source>
	</entry>

	<entry>
		<title type="html">Comment on Detecting and Naming Boolean Parameters by Jesper Nordenberg</title>
		<link href="http://misto.ch/detecting-and-naming-boolean-parameters/comment-page-1/#comment-227"/>
		<id>http://misto.ch/?p=404#comment-227</id>
		<updated>2012-05-07T12:48:13+00:00</updated>
		<content type="html">&lt;p&gt;What makes Boolean special compared to other types?&lt;/p&gt;</content>
		<author>
			<name>Mirko Stocker</name>
			<uri>http://misto.ch</uri>
		</author>
		<source>
			<title type="html">Comments for Mirko Stocker's Blog</title>
			<link rel="self" href="http://misto.ch/comments/feed/"/>
			<id>http://misto.ch/comments/feed/</id>
			<updated>2012-05-08T08:15:35+00:00</updated>
		</source>
	</entry>

</feed>

