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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/31/07 12:43
Modified:
  05/31/07 12:53

Read: times


 
#140107 - PHEW
Responding to: ???'s previous message
NOT a criticism, but advice from experience.

calculations formatted the way you do are virtually non-debuggable and TOATALLY unreadable.

I doubt you need to track the sun every microsecond.

1) define your constants and use the names in the calculations, that makes it understandable
2) split the calculations into inmtermediate steps, that makes it debuggable.

I know that 2) will make your code less 'elegant' (I totally hate that word when applied to programming style) but is 'elegant' more important than 'debuggable'?

Erik



List of 26 messages in thread
TopicAuthorDate
DS1307 code problem for AT89C52            01/01/70 00:00      
   What have you got so far?            01/01/70 00:00      
      Things i have got so far            01/01/70 00:00      
         DS1307            01/01/70 00:00      
         Code layout            01/01/70 00:00      
         PHEW            01/01/70 00:00      
         Use GPS receiver for Lat, Day and Time            01/01/70 00:00      
            Very good idea!            01/01/70 00:00      
            excellent idea            01/01/70 00:00      
            Why Both            01/01/70 00:00      
               have you heard of this thing called "Google"            01/01/70 00:00      
         Comments on Formula            01/01/70 00:00      
            there is code for this at the Maxim website            01/01/70 00:00      
               GPS Receiver-Good Idea            01/01/70 00:00      
                  Why both??            01/01/70 00:00      
                  Using the DS1307            01/01/70 00:00      
                     re \"suggestion to Craig\"            01/01/70 00:00      
                        8052.com expanding tabs into spaces            01/01/70 00:00      
                           Just read            01/01/70 00:00      
                              Tabs, 8052.com and email            01/01/70 00:00      
                                 crunched by quoting AND email            01/01/70 00:00      
                                    Bug in quoting            01/01/70 00:00      
                                 pre tags            01/01/70 00:00      
                           it is not just the tabs            01/01/70 00:00      
                     TABs are entirely unreliable - just avoid them!            01/01/70 00:00      
   Tracking            01/01/70 00:00      

Back to Subject List