<?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: Booleans as Function Parameters Considered Harmful</title>
	<atom:link href="http://www.hackification.com/2008/09/11/booleans-as-function-parameters-considered-harmful/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hackification.com/2008/09/11/booleans-as-function-parameters-considered-harmful/</link>
	<description></description>
	<lastBuildDate>Fri, 23 Jul 2010 14:53:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Samuel Carlsson</title>
		<link>http://www.hackification.com/2008/09/11/booleans-as-function-parameters-considered-harmful/comment-page-1/#comment-32</link>
		<dc:creator>Samuel Carlsson</dc:creator>
		<pubDate>Sat, 30 Jan 2010 23:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=43#comment-32</guid>
		<description>Enums are never the answer. In this situation I&#039;d either go with a real class for Higlight or Visibility or both! That would make it obvious what the parameter was for. Also an object initializer would do the trick, i.e. &quot;new Thing { Visible = false }&quot;. That comes with new drawbacks such as unability to specify required parameters and readonly fields. Perhaps named parameters comes to c# soon!</description>
		<content:encoded><![CDATA[<p>Enums are never the answer. In this situation I&#8217;d either go with a real class for Higlight or Visibility or both! That would make it obvious what the parameter was for. Also an object initializer would do the trick, i.e. &#8220;new Thing { Visible = false }&#8221;. That comes with new drawbacks such as unability to specify required parameters and readonly fields. Perhaps named parameters comes to c# soon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jarod</title>
		<link>http://www.hackification.com/2008/09/11/booleans-as-function-parameters-considered-harmful/comment-page-1/#comment-31</link>
		<dc:creator>jarod</dc:creator>
		<pubDate>Fri, 28 Nov 2008 19:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.hackification.com/?p=43#comment-31</guid>
		<description>If it&#039;s a Boolean state, provide a single method to test it with a name like isVisible() and then two other methods to turn it on/off, with names like beVisible() and beInvisible()</description>
		<content:encoded><![CDATA[<p>If it&#8217;s a Boolean state, provide a single method to test it with a name like isVisible() and then two other methods to turn it on/off, with names like beVisible() and beInvisible()</p>
]]></content:encoded>
	</item>
</channel>
</rss>
