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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/04/06 18:01
Modified:
  12/04/06 18:20

Read: times


 
#128927 - throw away all \"sample code\"
Responding to: ???'s previous message
what do I have do to improve my programming skills?
throw away all "sample code". Nothing is more deterimental to "improving programming skills" than sample code. When you have "fought your way" through some projects, it will dawn on you.

The process you have followed will never improve your programming skills, but you will be great at copying just like I could copy Greek for years without ever understanding what I copied.

"sample code" can be great when you have developed some code yourself (i.e. understood what it is doing) and you want to see i9f "sample code" can enlighten you on that last little bit you do not quite have right.

A very often seen example: some will copy some LCD code and post here "why does it not work?" which almost always is because they have no idea what it does. one example will be thet with no understanding whatsoever they do not see that some timings in the example and their code (on their processor E.G. 6 clock vs 12 clock) are different. They will be absolutotally lost.

Now for the opposite use of "sample code" When I, long ago, did my first LCD driver, it did not quite work. I looked a someone elses code and saw that (s)he went through initializee twice. When I added that my code worked. Because I had developed my own code, I understood the "reference code" and immediately grasped what was the issue.

Erik


List of 34 messages in thread
TopicAuthorDate
Why so long a learning curve            01/01/70 00:00      
   throw away all \"sample code\"            01/01/70 00:00      
      Somewhat disagree            01/01/70 00:00      
         somewhat agree            01/01/70 00:00      
            Some what agree            01/01/70 00:00      
               an eternity            01/01/70 00:00      
               No need to memorise            01/01/70 00:00      
                  IMHO            01/01/70 00:00      
            well, NOTHING is more detrimental            01/01/70 00:00      
               that's step 2            01/01/70 00:00      
            well, NOTHING is more detrimental            01/01/70 00:00      
   Who says it's easy?            01/01/70 00:00      
      Uncommented code.            01/01/70 00:00      
         baloney            01/01/70 00:00      
            That's why I wrote ...            01/01/70 00:00      
               the point is            01/01/70 00:00      
                  the sceptic approach            01/01/70 00:00      
      Complex?            01/01/70 00:00      
         sometimes it HAS to be poorly structured...            01/01/70 00:00      
         Level of confusion            01/01/70 00:00      
   Dont ever giveup....            01/01/70 00:00      
      Time is the enemy of the craftsman            01/01/70 00:00      
      Thanks            01/01/70 00:00      
         PCA cookbook and other links            01/01/70 00:00      
            ignore that one            01/01/70 00:00      
         Use the fourm luke            01/01/70 00:00      
   the real stuff            01/01/70 00:00      
   start a real project            01/01/70 00:00      
      Well,...            01/01/70 00:00      
   get a SILabs devboard            01/01/70 00:00      
      or any other lowcost quasiICE            01/01/70 00:00      
   also this can be a very usefull tool            01/01/70 00:00      
      No, simulator is NO FUN!            01/01/70 00:00      
      but then DO remember            01/01/70 00:00      

Back to Subject List