<story><title>Tidy First?</title><url>https://henrikwarne.com/2024/01/10/tidy-first/</url></story><parent_chain></parent_chain><comment><author>aulin</author><text>Guard clauses, something so simple yet so underrated, you never know how much you love them until you meet people from the single return per function church.&lt;p&gt;It still amazes me how they can believe that putting all the guards in tens of nested ifs can be saner than a few extra returns at the top.&lt;p&gt;And don&amp;#x27;t get me started on those that goto is bad but it&amp;#x27;s ok to put everything inside a do while (0) they can break out of and clean up at the end.&lt;p&gt;Sorry for the off-topic rambling, tidying is like &amp;quot;clean&amp;quot; code, everyone has their own definition and sometimes changing code for the sake of making it tidy is more dangerous than just changing the behaviour, especially if it was already tidy by some other people standard.</text></comment>
<story><title>Tidy First?</title><url>https://henrikwarne.com/2024/01/10/tidy-first/</url></story><parent_chain></parent_chain><comment><author>gregdoesit</author><text>For anyone interested in reading full chapters of the book (all are relatively short!), here are three full ones [1], shared with the permission of the author (Kent Beck) and publisher (O’Reilly).&lt;p&gt;[1] &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;newsletter.pragmaticengineer.com&amp;#x2F;p&amp;#x2F;dead-code-getting-untangled-and-coupling&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;newsletter.pragmaticengineer.com&amp;#x2F;p&amp;#x2F;dead-code-getting...&lt;/a&gt;</text></comment>