<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2021:08:30</title>
        <description></description>
        <link>https://www.baszerr.eu/</link>
        <lastBuildDate>Wed, 06 May 2026 07:55:14 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://www.baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://www.baszerr.eu/</link>
        </image>
        <item>
            <title>2021-08-30_-_on_code_comments</title>
            <link>https://www.baszerr.eu/doku.php?id=blog:2021:08:30:2021-08-30_-_on_code_comments</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;on_code_comments&quot;&gt;2021-08-30 - on code comments&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
recently, while &lt;a href=&quot;https://lexfridman.com/brian-kernighan/&quot; class=&quot;urlextern&quot; title=&quot;https://lexfridman.com/brian-kernighan/&quot; rel=&quot;ugc nofollow&quot;&gt;listening to a podcast interview&lt;/a&gt; with &lt;a href=&quot;https://en.wikipedia.org/wiki/Brian Kernighan&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/Brian Kernighan&quot;&gt;Brian Kernighan&lt;/a&gt; i came across of a great quote from him:
&lt;/p&gt;
&lt;blockquote&gt;&lt;div class=&quot;no&quot;&gt;
 Don&amp;#039;t comment bad code – rewrite it.&lt;/div&gt;&lt;/blockquote&gt;

&lt;p&gt;
while i did &lt;a href=&quot;https://www.baszerr.eu/doku.php?id=blog:2020:01:11:2020-01-11_-_self-documenting_code&quot; class=&quot;wikilink1&quot; title=&quot;blog:2020:01:11:2020-01-11_-_self-documenting_code&quot; data-wiki-id=&quot;blog:2020:01:11:2020-01-11_-_self-documenting_code&quot;&gt;mumble about code comments in the past&lt;/a&gt;, this quote is so good and adequate, yet so condensed, it&amp;#039;s worth exploring it a bit:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; bad code shall not be commented, but rewritten.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; existing comment may hint you that it might be a bad code.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; comment does not necessary mean that the code is bad.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; there are places where comments are needed, as it&amp;#039;s hard/impossible to explain it enough in code.&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
another quite from Brian K. that i love is:
&lt;/p&gt;
&lt;blockquote&gt;&lt;div class=&quot;no&quot;&gt;
 Do what you think is interesting, do something that you think is fun and worthwhile, because otherwise you won&amp;#039;t do it well anyway.&lt;/div&gt;&lt;/blockquote&gt;

&lt;p&gt;
here are &lt;a href=&quot;http://ellard.org/dan/www/libsq/ref/style.html&quot; class=&quot;urlextern&quot; title=&quot;http://ellard.org/dan/www/libsq/ref/style.html&quot; rel=&quot;ugc nofollow&quot;&gt;some&lt;/a&gt; &lt;a href=&quot;https://www.goodreads.com/author/quotes/153350.Brian_W_Kernighan&quot; class=&quot;urlextern&quot; title=&quot;https://www.goodreads.com/author/quotes/153350.Brian_W_Kernighan&quot; rel=&quot;ugc nofollow&quot;&gt;more&lt;/a&gt;. :)
&lt;/p&gt;

&lt;p&gt;
and remember – by the end of the day, there are only 2, truly difficult issues in IT:
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; cache invalidation&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; naming things&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; off-by-one errors&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 30 Aug 2021 09:09:49 +0000</pubDate>
        </item>
    </channel>
</rss>
