Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Monk ethics: Beauty vs. Powerby footpad (Abbot) |
on Dec 19, 2000 at 00:23 UTC ( [id://47254]=note: print w/replies, xml ) | Need Help?? |
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 Section
Meditations
|
|