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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/26/10 22:55
Read: times


 
#178337 - out of context
Responding to: ???'s previous message
Michael Karas said:I gain a full understanding of how it works, where I can improve it, and how I can restructure it for the new features that have to be added.
But also note that because you are the writer....
the above quote refer to taking over someone elses garbage, NOT to "you are the writer".

Also if "you are the writer" is a parameter for you everybody that comes after you will rightfully declare your efforts garbage.

The compiler does not care about how the code was written
correct, but you sure do when debugging it

chances are the next person will think your code is just plain garbage
I have, occasionally, taken over code that was so well written that, instead of redoing it to my 'style' I adopted the original writers style for that project. I also have seen code that was impossible to follow.

The fact is that most, when discussing comments etc, talk about "the next person" the person that gains the most from well structured code is yourself. Now I must, in the interest of full disclosure, admit that if I were presented with some of my code from eons ago I would, most likely, consider it garbage. I learned the hard way to write code that I could understand when it was given back to me after years with "just add this feature"

The way you learn to not write 'garbage' is debugging it. Also when it is given back to you after years with "just add this feature" you will appreciate the clarity of your code and swear about the lack thereof.


Erik

List of 29 messages in thread
TopicAuthorDate
Uart user menu via switch/case state machine            01/01/70 00:00      
   State machine can be small.            01/01/70 00:00      
   My take....            01/01/70 00:00      
   asked and answered            01/01/70 00:00      
      Broken and Fixed            01/01/70 00:00      
         excellent            01/01/70 00:00      
            My experience as well....            01/01/70 00:00      
               My experience as well....            01/01/70 00:00      
               But you're the writer...            01/01/70 00:00      
                  out of context            01/01/70 00:00      
                     Yes, Chances are no one else will see your code            01/01/70 00:00      
                        male cow manure            01/01/70 00:00      
                           Don't be too over confident            01/01/70 00:00      
                  Just Concepts            01/01/70 00:00      
                     Don't think own code is the best            01/01/70 00:00      
                     exactly            01/01/70 00:00      
                        what I have done a lot of lately is            01/01/70 00:00      
   Protothreads???            01/01/70 00:00      
   A case for a CASE tool?            01/01/70 00:00      
      Using a tool like that........            01/01/70 00:00      
         Thanks Michael...            01/01/70 00:00      
            Pencil and paper            01/01/70 00:00      
      Pros and Cons            01/01/70 00:00      
         Analysis/Design            01/01/70 00:00      
            Enterprise Architect            01/01/70 00:00      
               RE: Enterprise Architect            01/01/70 00:00      
                  Reverse State Tables            01/01/70 00:00      
                     RE: "Reverse-engineering"            01/01/70 00:00      
                        php and html when documenting            01/01/70 00:00      

Back to Subject List