Except for education (whether formal or personal improvement), programming generally occurs in a business context. It's an action designed to solve a business need and, at some level, help the organization generate more profit.

With this in mind, I generally consider code to be beautiful, powerful, and ethical if the:

This means that most of the time, I'm trying to produce working code, not elegant code.

You'll note that I rate maintainability higher than elegance. As someone who's inherited many projects over the course of my programming career, I have seen good code that was poorly documented and bad code written very clearly. In nearly every case, I have preferred the latter because "elegant" code can require more knowledge regarding the language, system, and environment than the client has been willing to pay for me to learn.

As Dominus said, it really depends. Look at your overall schedule and see what needs to be accomplished in that time frame. Figure out the tasks, determine your knowledge of how to achieve those tasks, and then budget your time appropriately....even if it means you may make an mistake in your initial design.

YMMV...

--f

In reply to Re: Monk ethics: Beauty vs. Power by footpad
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.