As you learn a language, what you are learning is the vocabulary (nouns, verbs, modifiers, etc) and the syntax. You are not learning how to "program". Sure, you may learn to emulate how someone else programs by looking at their code or by reading a book, but you are still just taking the vocabulary and matching another's template. For some, the story ends here, for others the story is just beginning....
When you decide to venture out on your own, you will be truly like a child experimenting with language for the first time. You will make minor mistakes at times, at other times you will seem to be babbling to the adults. Just as the naive child will touch the hot stove that the adult warned them not to, you will try and re-invent the wheel. If we are lucky, we do not stay children forever.
I have always been elated when I figured out code that solved my problem. Some time in the future, I discover a new technique that would have reduced the number of iterations in the loop by a thousand fold and I feel like a fool. IMHO, it is time to "RE"-code the original. In doing so, you will assimilate the new technique so that you don't make the mistake again. Most likely, you will reduce the size of the original and make it run faster. Almost definately, you will learn more new techniques in the process.
What is the single hardest about doing this? If you write code as one long run-on sentence and not in properly formed paragraphs and sentences. It is easy to correct English papers that have headings, sub-headings, paragraphs, sentences, etc. Each piece stands by itself and can usually be changed without having to change the entire document.
Limbic~Region
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Value of "RE"-coding for the newbie
by vladb (Vicar) on Sep 02, 2002 at 02:27 UTC | |
Re: Value of "RE"-coding for the newbie
by schumi (Hermit) on Sep 02, 2002 at 12:53 UTC | |
Re: Value of "RE"-coding for the newbie
by gmax (Abbot) on Sep 02, 2002 at 09:45 UTC | |
Re: Value of "RE"-coding for the newbie
by hsmyers (Canon) on Sep 02, 2002 at 16:15 UTC | |
by John M. Dlugosz (Monsignor) on Sep 04, 2002 at 20:50 UTC | |
Re: Value of "RE"-coding for the newbie
by diakonos (Hermit) on Sep 04, 2002 at 12:28 UTC |