Read this post ‘unless’ you’re not a Ruby developer
I'd consider myself a writer more than a developer, but I've been working in Rails for over 15 years, and one of my absolute favourite things is "unless".<p>Why? Because it allows you to express yourself more elegantly.<p>The click-bait title is misleading. It's meant to ridicule "unless", but actually achieves the opposite.<p>If you were to write the title of the post as code, it would be:<p><pre><code>  unless !ruby_dev
    read article
  end
</code></pre>
That would be a terrible use of "unless"! That should clearly say "if ruby_dev", not "unless !ruby_dev".<p>But what if you wanted to write an article meant for anyone other than ruby developers?<p>Which of the following is better?<p><pre><code>  if !ruby_dev
</code></pre>
or<p><pre><code>  unless ruby_dev
</code></pre>
Both work, but I consider the second option more elegant. Just as I wouldn't verbally say "if you're not a ruby developer" rather than "unless you're a ruby developer".<p>Honestly, I don't see the issue. It's a style matter. Just use it properly. All language can be abused if you try hard enough.