<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ramdyne (Posts about coding)</title><link>https://www.ramdyne.nl/</link><description></description><atom:link href="https://www.ramdyne.nl/categories/coding.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><lastBuildDate>Sat, 07 Mar 2026 00:09:00 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>On documentation</title><link>https://www.ramdyne.nl/posts/on-documentation/</link><dc:creator>ramdyne</dc:creator><description>&lt;p&gt;Andreas Sikkema's law on &lt;a class="reference external" href="http://kushaldas.in/posts/document-you-code-part1.html"&gt;code documentation&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Once you've properly named every method, function, class or struct, don't document what your code is doing, but why&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I can read your code, so what it is doing I can find out myself. Either by
reading the code, executing it and watch what it is doing, adding printf()'s
everywhere or checking the packets it is sending by using Wireshark. I could
even, if I am desperate, run your code in a debugger.&lt;/p&gt;
&lt;p&gt;I can't, however, ever find out why in Ctulhu's name you wanted to use
&lt;a class="reference external" href="http://en.wikipedia.org/wiki/Duff%27s_device"&gt;Duff's device&lt;/a&gt; in that
function if you don't tell me!&lt;/p&gt;
&lt;p&gt;The first corollary of the above mentioned law is:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Logging why something happens is as important as documenting why code is
doing something&lt;/p&gt;
&lt;/blockquote&gt;</description><category>coding</category><category>documentation</category><category>english</category><category>software engineering</category><guid>https://www.ramdyne.nl/posts/on-documentation/</guid><pubDate>Sun, 15 Sep 2013 19:34:33 GMT</pubDate></item></channel></rss>