Teach Yourself Programming in Ten Years
Teach Yourself Programming in Ten Years
Peter Norvig
The conclusion is that either people are in a big rush to learn about
programming, or that programming is somehow fabulously easier to learn
than anything else. Felleisen et al. give a nod to this trend in their book
How to Design Programs, when they say "Bad programming is easy. Bulgarian
Idiots can learn it in 21 days, even if they are dummies." The Abtruse (Boyko Bantchev)
Goose comic also had their take.
Let's analyze what a title like Teach Yourself C++ in 24 Hours could
mean:
Teach Yourself: In 24 hours you won't have time to write several Chinese
significant programs, and learn from your successes and failures (Xiaogang Guo)
with them. You won't have time to work with an experienced
programmer and understand what it is like to live in a C++
environment. In short, you won't have time to learn much. So the
book can only be talking about a superficial familiarity, not a deep
understanding. As Alexander Pope said, a little learning is a Croatian
dangerous thing. (Tvrtko Bedekovic)
Have the good sense to get off the language standardization effort
as quickly as possible.
With all that in mind, its questionable how far you can get just by book
learning. Before my first child was born, I read all the How To books, and
still felt like a clueless novice. 30 Months later, when my second child
was due, did I go back to the books for a refresher? No. Instead, I relied
on my personal experience, which turned out to be far more useful and
reassuring to me than the thousands of pages written by experts.
Fred Brooks, in his essay No Silver Bullet identified a three-part plan for
finding great software designers:
This assumes that some people already have the qualities necessary for
being a great designer; the job is to properly coax them along. Alan Perlis
put it more succinctly: "Everyone can be taught to sculpt: Michelangelo
would have had to be taught how not to. So it is with the great
programmers". Perlis is saying that the greats have some internal quality
that transcends their training. But where does the quality come from? Is it
innate? Or do they develop it through diligence? As Auguste Gusteau
(the fictional chef in Ratatouille) puts it, "anyone can cook, but only the
fearless can be great." I think of it more as willingness to devote a large
portion of one's life to deliberative practice. But maybe fearless is a way
to summarize that. Or, as Gusteau's critic, Anton Ego, says: "Not
everyone can become a great artist, but a great artist can come from
anywhere."
References
Bloom, Benjamin (ed.) Developing Talent in Young People, Ballantine,
1985.
Brooks, Fred, No Silver Bullets, IEEE Computer, vol. 20, no. 4, 1987, p.
10-19.
Bryan, W.L. & Harter, N. "Studies on the telegraphic language: The
acquisition of a hierarchy of habits. Psychology Review, 1899, 8, 345-375
Answers
Approximate timing for various operations on a typical PC:
Sort by Best
Recommend 54 Share
LOG IN WITH
OR SIGN UP WITH DISQUS ?
Name
1) learning by doing is not necessarily the best or even the fastest way to learn, even though it
definitely has its place. If I would teach anyone programming, I'd strongly recommend to study
and try to understand good code; this would be the technique of 'worked examples'. So far, lots
of 'worked examples' and a bit of problem solving seems to be better than one example
followed by lots of problem-solving. (see for example http://www.jstor.org/discov...
2) The 10-year rule (or 10.000-hour rule) very much depends on the field; it used to be about 6
years for painters, but can be over 25 years for musicians. (Sternberg, Handbook of Creativity,
around page 230) It tends to depend mostly on the competition in the field - the author of
'Moonwalking with Einstein' became an US champion after about 1 year of training!. Assuming
that a majority of programmers work hard at deliberate practice (which I doubt), it may indeed
take 10 or 15 years to become a top programmer. But to be functionally literate and 'worth
hiring' may not require that many years. Besides, one could definitely ask who is a 'top
programmer': someone who can write code that is superbly simple and clear? Someone who
can solve a complicated problem with a snazzy new polynomial algorithm? Someone who can
keep track of a project involving millions of lines of code? Someone who knows hundreds of
language functions and libraries? Someone who actually understands what a non-computer-
scientist customer is talking about and can transform it into a solution? Not all programmers will
be equally good in all of those things, being the 'best' programmer may therefore be like
comparing apples and oranges.
For the rest, excellent post! It definitely contains material that I want to mull over some more...
62 Reply Share
What I think the OP ment was that some people are more inclined to
learn certain
things over others. I might be able to understand programming easier
than you, it could just click with me, but you can understand other things
better than me.
oh
and 10,000 hours is 416 days and 16 hours.... so If you wanna get those
10,000 hours in two years isn't that like 15 or 16 hours per day 7 days
a week?
Reply Share
I remember coming back to my father that day and telling him during
dinner: "I can do anything you can do" (he owned a software company,
and no, he never sat down to teach me). Even though I only knew two
flow control mechanisms IF and JMP, I could not think of a problem (lack
of creativity probably) I could not solve with the tools I had (IF and JMP).
Reply Share
It's dangerous not in the sense that it'll kill anyone, but dangerous as in
building a structure on dodgy foundations. Maintenance costs ratchet up,
and the cost of implementing new features or shiny new cool things is
prohibitive (or impossible)
Reply Share
Itzshak Stern has said 'Practice slowly' when asked what's the best way to learn to play the
violin. That advice has stuck to me for the last 3 months or so. It jumped to me again when I
read your emphasis on _deliberate_ practice. But even with full attention, it would take 10K
hours -- ars longa indeed. On the other hand, the reward for long toil is always greater than that
for the genius who gets it right away. Not that I feel sorry for the genius. :)
p.s. Now about working on projects where one is the worst programmer ... any openings at
Google right now? :)
4 Reply Share
At first, my ideal was learning how to program Ruby, Python and Java within two or three years
(not to the point of mastering them, but to the point of me having a proper understanding of the
language and being capable of using the language in a way that doesn't scream "Novice!"). At
first I was a little upset that it would take so long, but then realized that within that ten years I'd
still be programming. It isn't a matter of learning for ten years, THEN doing it. It's a matter of
learning as I go, for the period of ten years... and maybe even learning more after those ten
years as I go. Really, I've been interested in this kind of stuff since I was six or so, and even
tried learning some really basic stuff when I was (probably) nine. I'm thirteen now, and I've still
been learning a few things. I could continue doing this for ten years, becoming more adapt with
different programming languages. I have a Dad and an Aunt who'd be more then happy to help
teach me some things long the way. I just need to spill in a lot more effort!
Much different to how I was thinking about this at first, I'm now much more motivated! I hope I'll
keep to my word and learn within these ten years. ^_^ (I apologize for my lack of knowledge
when it comes to grammar, especially with my misplacement of the words "Then" and "Than",
they just confuse me far too much for me to bother learning how to use them properly.
Hopefully this useless comment of mine still makes sense.)
5 Reply Share
Edit: I just realized your post was from 2 years ago. I guess I'm not double your age
after all. :)
Reply Share
Gregory Tasonis 2 years ago
A few ramblings from a middle aged tech guy. There is a reason why the very best books on
the hard sciences are usually decades old and why publishers will never go broke with "24
hours" books. Everything is built on a solid foundation. Everything you learn needs to be
actively integrated into your overall "information architecture" web of understanding. Something
I read, Feynman I believe but my memory isn't what it used to be, stuck with me. People have
difficulty with Physics because Physics is properly taught using the language of Mathematics.
You can search for book after book after book that uses prose to "explain things differently", but
it's an impossible task.
In this context, "A little programming knowledge is a dangerous thing" means to me that a trivial
understanding of a single language's syntax isn't something you can build on to understand
more complex problems than printing "Hello World!". You don't need to know everything up front
to begin, but you DO need to realize everything you're learning initially is really miles deep. If
you don't understand something, you're probably missing some pre-requisite and need to figure
out what you need to learn, learn it and integrate it into your web. That process is painful and
difficult. Did I mention it's painful? If you're not naturally gifted, I've found EE's tend to develop
this talent...indeed it may be the most important thing you ever learn.
Mr. Norvig makes two excellent suggestions that I wish I'd heard 20 years ago and would
recommend to anyone interested in CS. "Remember that there is a Computer in Computer
Science". Read Horowitz and Hill's "The Art of Electronics" from cover to cover. Then learn 6 or
7 programming languages that each exemplify a different type of abstraction.
"May the road rise up to greet you, may the wind be always at your back, and may you be in
Heaven an hour before the Devil knows you're dead."
4 Reply Share
That comparison was not all that valid. I do agree the title of this article
should be ten years to be a professional industry developer. I know
several biophysicists that do theoretical/computational work after
CS1/CS2, perhaps a numerical analysis or comp physics course, and a
class or two that needed some coding in undergrad. After a year of grad