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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Erik Malund
08/15/05 07:58
  08/15/05 08:01

Read: 970 times
Mt Airy, Nc

#99429 - what is obvious
Responding to: Jan Waclawek's previous message
But while there might be moments when somebode "shows off" in a short routine like those in the " 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?


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
defensive coding how and why      Erik Malund      08/12/05 15:33      
   What do you mean?      Craig Steiner      08/12/05 17:32      
      Elegant      Steve M. Taylor      08/13/05 00:20      
         Paradox?      Rob Klein      08/13/05 05:10      
      clarification      Erik Malund      08/15/05 06:35      
         Remember      Neil Kurzman      08/15/05 11:43      
            Absolutely, and even then should be avoi      Erik Malund      08/15/05 12:19      
            Absolutely, and even then should be avoi      Erik Malund      08/15/05 12:19      
            extrodiaray?      Jan Waclawek      08/15/05 13:12      
                extrodiaray?      Craig Steiner      08/15/05 13:17      
                  Goooooogle      Jan Waclawek      08/15/05 15:08      
                     No, he does not      Erik Malund      08/15/05 15:30      
                        proofreading      Jan Waclawek      08/16/05 03:27      
                     Another challeneg      Craig Steiner      08/15/05 15:49      
                        another challenge      Jan Waclawek      08/16/05 03:45      
               OK, I can not Spell      Neil Kurzman      08/15/05 19:18      
                  this is my point      Jan Waclawek      08/16/05 03:30      
                     I sure you could, But      Neil Kurzman      08/16/05 09:35      
                        Really?      Craig Steiner      08/16/05 10:20      
                           professors and classes      Jan Waclawek      08/16/05 10:50      
                           Really !      Neil Kurzman      08/17/05 14:05      
                              Hmmm      Craig Steiner      08/17/05 14:09      
            defensive commenting      Jan Waclawek      08/16/05 03:59      
         Don't know      Craig Steiner      08/15/05 12:47      
            Ok, let me get away from that word      Erik Malund      08/15/05 13:49      
               Gotcha      Craig Steiner      08/15/05 14:44      
                  and I came to truly despise that word wh      Erik Malund      08/15/05 15:07      
                     Just like driving      Kalpak Dabir      08/17/05 20:48      
            Elegant equals...      Dan Henry      08/15/05 17:21      
               that it      Erik Malund      08/16/05 06:11      
               Oh, how true...!      Andy Neil      08/23/05 05:29      
                  It's never the author's problem      Dan Henry      08/23/05 08:51      
                     I knew a person who told me about a real      Erik Malund      08/23/05 09:38      
                        A blissful existence      Dan Henry      08/23/05 18:37      
                  Your bugs versus my bugs (or vice versa)      Dan Henry      08/23/05 18:34      
                     common wisdom has it that the average pr      Erik Malund      08/24/05 07:34      
   One exception      Ian Bell      08/13/05 08:32      
      exceptions      Erik Malund      08/15/05 06:45      
         vice versa      Jan Waclawek      08/15/05 06:53      
            what is obvious      Erik Malund      08/15/05 07:58      
               your mileage may vary      Jan Waclawek      08/15/05 08:15      
                  that is the very same      Erik Malund      08/15/05 09:05      
                     competent      Jan Waclawek      08/15/05 13:40      
                        please define "working"      Erik Malund      08/15/05 14:02      
                           competent programming => working program      Jan Waclawek      08/15/05 15:48      
   i'm new      Emem Essien      08/18/05 05:10      
      if you move your eyeballs a bit to the l      Erik Malund      08/18/05 06:22      
         Coding Bible      Russell Bull      08/20/05 08:16      
            Precedence vs. explicitness      Dan Henry      08/20/05 09:27      
   Outlaw coding!      Russell Bull      08/21/05 06:47      
      a program it is, by definition, asynchro      Erik Malund      08/22/05 07:42      
         Methinks the point was missed      Russell Bull      08/22/05 18:20      
            "Easy?"      Andy Neil      08/23/05 03:13      
            but we agree      Erik Malund      08/23/05 07:34      
      VIPER?      Andy Neil      08/22/05 10:53      
      What does "timing" mean?        Dan Henry      08/22/05 20:03      
         excuse the foreigner, if he was not clea      Erik Malund      08/23/05 07:36      

Back to Subject List