title: Are booleans as method arguments unacceptable?
body: <p>A colleague of mine states that <strong>booleans as method arguments are not acceptable</strong>. They shall be replaced by enumerations. At first I did not see any benefit, but he gave me an example.</p>
  
  <p>What's easier to understand?</p>
  
  <pre><code>file.writeData( data, true );
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>enum WriteMode {
    Append,
    Overwrite
  };
  
  file.writeData( data, Append );
  </code></pre>
  
  <p>Now I got it! ;-)<br>
  This is definitely an example where an enumeration as second parameter makes the code much more readable.</p>
  
  <p>So, what's your opinion on this topic?</p>