??? 08/15/05 20:44 Read: times |
#99480 - Gotcha Responding to: ???'s previous message |
Erik Malund said:
Ok, let me get away from that word. "Elegant" comes from a particular person I had the displeasure of working with for a short while. In his opinion, if code was not obfusciated it was not "elegant". So basically what we really have here is a person you worked with who just didn't understand the meaning of "elegant." It looks like my open-source example wasn't far off. Why anyone thinks that an obfusciated solution is "elegant" is beyond me. again, I agree; however going one step too far often, rather than solid code lead to code that will have one "stupid" exception. I agree. Like you said later, I'd rather go with a 57-cycle solution that is clearly understandable and can be shown to work than a 48-cycle cryptic routine that makes no sense and appears to work by magic. If that same 48-cycle cryptic routine can be made understandable with comments so it can be shown to work then my reservations with that same routine would go away. There are times, however, that it seems that no amount of commenting makes the routine any more understandable-in which case I'd go with the 57-cycle routine. Regards, Craig Steiner |