Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/15/05 18:47
Read: times


 
#99472 - Don't know
Responding to: ???'s previous message
Erik Malund said:
I see that maybe I were not clear here, it is just that so often I have heard the word "elegant" used about code that was written more for the "programmer" (quotes deliberate) to be able to brag than for the program to function in a working and understandable way.


I guess I'd appreciate that more had I ever seen it. Well, maybe I've sort of seen it in open-source software such as the Linux kernel where the code is absolutely impossible to follow because it appears the developer was in some contest to see if he could turn 10 lines of 'C' code into 1 line of 'C' code using compound conditions, etc.

Is that what you mean? If so, I wouldn't call that elegant. I don't even see why someone would brag about having written it. That's just messy coding.

so "Elegant" refer to the programmer showing off.
"looking good" refer to being obvious


Now this may be where I differ. If the programmer is showing off good code, then he has every right to "show off" and brag about this code.

Elsewhere in this thread you mentioned that you saw the 8052.com challenges as a good place to show off without hurting anyone--I would disagree: If you can write solid code that does in 50 instruction cycles what another routine does in 80, then that's a good thing.

I think I'm still not catching your meaning of "elegant." Efficient code, to me, is elegant. As such, I would disagree that elegant code is a bad thing.

But if by "elegant" what you mean what I described above (compacting 10 lines of source code into 1 line of source code) then I would agree that that is a bad thing; but I would disagree that such code is "elegant" in the first place.

Regards,
Craig Steiner


List of 57 messages in thread
TopicAuthorDate
defensive coding how and why            01/01/70 00:00      
   What do you mean?            01/01/70 00:00      
      Elegant            01/01/70 00:00      
         Paradox?            01/01/70 00:00      
      clarification            01/01/70 00:00      
         Remember            01/01/70 00:00      
            Absolutely, and even then should be avoi            01/01/70 00:00      
            Absolutely, and even then should be avoi            01/01/70 00:00      
            extrodiaray?            01/01/70 00:00      
                extrodiaray?            01/01/70 00:00      
                  Goooooogle            01/01/70 00:00      
                     No, he does not            01/01/70 00:00      
                        proofreading            01/01/70 00:00      
                     Another challeneg            01/01/70 00:00      
                        another challenge            01/01/70 00:00      
               OK, I can not Spell            01/01/70 00:00      
                  this is my point            01/01/70 00:00      
                     I sure you could, But            01/01/70 00:00      
                        Really?            01/01/70 00:00      
                           professors and classes            01/01/70 00:00      
                           Really !            01/01/70 00:00      
                              Hmmm            01/01/70 00:00      
            defensive commenting            01/01/70 00:00      
         Don't know            01/01/70 00:00      
            Ok, let me get away from that word            01/01/70 00:00      
               Gotcha            01/01/70 00:00      
                  and I came to truly despise that word wh            01/01/70 00:00      
                     Just like driving            01/01/70 00:00      
            Elegant equals...            01/01/70 00:00      
               that it            01/01/70 00:00      
               Oh, how true...!            01/01/70 00:00      
                  It's never the author's problem            01/01/70 00:00      
                     I knew a person who told me about a real            01/01/70 00:00      
                        A blissful existence            01/01/70 00:00      
                  Your bugs versus my bugs (or vice versa)            01/01/70 00:00      
                     common wisdom has it that the average pr            01/01/70 00:00      
   One exception            01/01/70 00:00      
      exceptions            01/01/70 00:00      
         vice versa            01/01/70 00:00      
            what is obvious            01/01/70 00:00      
               your mileage may vary            01/01/70 00:00      
                  that is the very same            01/01/70 00:00      
                     competent            01/01/70 00:00      
                        please define "working"            01/01/70 00:00      
                           competent programming => working program            01/01/70 00:00      
   i'm new            01/01/70 00:00      
      if you move your eyeballs a bit to the l            01/01/70 00:00      
         Coding Bible            01/01/70 00:00      
            Precedence vs. explicitness            01/01/70 00:00      
   Outlaw coding!            01/01/70 00:00      
      a program it is, by definition, asynchro            01/01/70 00:00      
         Methinks the point was missed            01/01/70 00:00      
            "Easy?"            01/01/70 00:00      
            but we agree            01/01/70 00:00      
      VIPER?            01/01/70 00:00      
      What does "timing" mean?            01/01/70 00:00      
         excuse the foreigner, if he was not clea            01/01/70 00:00      

Back to Subject List