I'm hardly an authority, but I have been attempting to learn to program computers since the fourth grade (I'm over 30 now). It seems to me that beautiful code is that which is powerful and vice versa. Ugly code is illegible, difficult to maintain, and therefore prone to error. Pretty code (in terms of consistent formatting, consistent algorithms, and efficient structure) is usually quite legible, easier to maintain, and less prone to error.

Whenever I feel like I'm hacking away at a problem instead of hacking a solution, I try to remember the three virtues. Will this code be reusable and maintainable, is it efficient, and is it just plain cool? I think a lot of the "software sucks" mentality would go away if more of us worked at these things. Programming is habit forming, and I'd rather have good habits than bad.

In reply to Re: Beauty vs. Power by ichimunki
in thread Monk ethics: Beauty vs. Power by kaatunut

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.