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 13:58
Modified:
  08/15/05 14:01

Read: times


 
#99429 - what is obvious
Responding to: ???'s previous message
But while there might be moments when somebode "shows off" in a short routine like those in the "8052.com code challenge", it's impossible on a long run for extensive projects.
I view the coding challenge mas an excellent opportunity for someone to "show off" without hurting anyone.

So if you find something "fancy" in a common program it is almost certainly because of "the exception" (trying to meet some resource limit - space, speed, money).
I can not count the number of times I have seen totally unnecessary "fancy" code (plenty of unused resources - time and space) causing someone to ask me to fix "that little last bug". Invariably this turns out to be "those pesky bugs we can not get rid of" and the only reasonable cure is a major effort to "unfancy" the code.
That being said, I have seen ONE case where "fancy" code was justified.
In a new development, if you get to the point where "fancy" code is even considered STOP, find another chip (more memory/faster) and then continue. You will find that you have saved tons of money and lots of agrrevation.

just calculate:
a reasonable estimate of one hour of programming (salary - insurance - tools - space - training - vacation - sickleave - supervision) will be $100.
So, of you use mundane code and spend 2 hours including debugging the cost is $200. If you do the same fancy it will take, say 10 hours to code and 5 hours to debug at a cost of $1500. The difference is $1300, so if the "fancy" stuff is in order to use a RC2 instead of a RD2 you need sell 1300 units to make the "fancy" wirth it. WHEN, because of the "fancy" stuff, a little bug show up someone must go to the customer to fix it. It typically cost us $500 to service a unit. NOW where are the "savings".

Yes, I will try to make a unit as cheaply as possible, but risking "a little pesky bug" that show up after 1000 units are shipped to save $1 - no way.

Now I say: Isn't all of said absolutely obvious?

Erik

I recall once a novice proudly told me "I have saved $0.75 of hardware". I asked "how long did it take you and how many units will you build" The answer was "about 5 hours, we hope to sell 10 units". I quickly calculated and asked "so they pay you $1.50 per hour?"


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