As I read it, your argument is based on two premises which don't necessarily (or even usually) hold:

  1. Open-source code's primary purpose is to help programmers learn.
  2. Comments hinder the learning process, because they give away information that would be better learned the hard way.

To the first premise: IMHO, open-source code is made open-source mostly to give people good tools that they otherwise wouldn't have access to, and if the code does mostly what they want it to, to give them the chance to modify it to do exactly what they want it to. If they learn something in the process, that's great, but the point is accessibility. So if you make open-source code harder to modify (by taking out the comments, for instance), you're defeating part of its purpose (the easy-to-modify bit).

To the second premise: depends what you want to teach. I'm going to learn more, and faster, about the language, or other back-end libraries, if I have to dig through the documentation to figure out how stuff works. On the other hand, if I'm trying to learn an algorithm, I don't want to get tied down to the details of just how each step works, because I'll lose the forest for the trees.

I don't think your argument's necessarily wrong, just a bit broad in scope. And thanks for bringing it up; I've enjoyed reading this thread.

--
:wq


In reply to Re: Commenting One's Code In A GNU/GPL/OpenSource World by FoxtrotUniform
in thread Commenting One's Code In A GNU/GPL/OpenSource World by Revelation

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.