Ode to the Robot Butt

24 · Brujo Benavides · May 25, 2021, 8:01 a.m.
…or is it to Erlang Pattern-Matching?Working as a mentor in the Education Working Group at The EEF, there are several tiny simple lessons that I’ve delivered over and over again. The one in this article is so common that I already gave it a name: The Robot Butt Rule.Hey, girl! 😏The rule goes like this…To find if a list is not empty, don’t check its length. Use the robot butt instead.The ProblemThe situation usually arises when some exercise or problem requires the developer to do something with ...