title: Why searching a sorted list using brute forcing is funny to Silicon Valley show cast
body: <p>In Silicon Valley show Episode 4 of Season 06, on coder is made fun of because he &quot;brute forced a sorted list&quot;. You can see a screenshot of the code below.</p>
  <p>For what I understand the code will return &quot;index&quot; if &quot;element&quot; is found on the sorted list. If not, it will just return -1. It's a basic comparison will all elements (which they find amusing)</p>
  <p>Why is it funny to them ? I don't get it.</p>
  <p><a href="https://i.stack.imgur.com/aK6DH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aK6DH.png" alt="enter image description here" /></a></p>