用十年来学编程_中英对照.doc

上传人:桔**** 文档编号:561973848 上传时间:2022-11-02 格式:DOC 页数:12 大小:123.51KB
返回 下载 相关 举报
用十年来学编程_中英对照.doc_第1页
第1页 / 共12页
用十年来学编程_中英对照.doc_第2页
第2页 / 共12页
用十年来学编程_中英对照.doc_第3页
第3页 / 共12页
用十年来学编程_中英对照.doc_第4页
第4页 / 共12页
用十年来学编程_中英对照.doc_第5页
第5页 / 共12页
点击查看更多>>
资源描述

《用十年来学编程_中英对照.doc》由会员分享,可在线阅读,更多相关《用十年来学编程_中英对照.doc(12页珍藏版)》请在金锄头文库上搜索。

1、Teach Yourself Programming in Ten YearsPeter NorvigWhy is everyone in such a rush?Walk into any bookstore, and youll see how to Teach Yourself Java in 7 Days alongside endless variations offering to teach Visual Basic, Windows, the Internet, and so on in a few days or hours. I did the following powe

2、r search at A: pubdate: after 1992 and title: days and (title: learn or title: teach yourself)and got back 248 hits. The first 78 were computer books (number 79 was Learn Bengali in 30 days). I replaced days with hours and got remarkably similar results: 253 more books, with 77 computer books follow

3、ed by Teach Yourself Grammar and Style in 24 Hours at number 78. Out of the top 200 total, 96% were computer books. The conclusion is that either people are in a big rush to learn about computers, or that computers are somehow fabulously easier to learn than anything else. There are no books on how

4、to learn Beethoven, or Quantum Physics, or even Dog Grooming in a few days. Felleisen et al. give a nod to this trend in their book How to Design Programs, when they say Bad programming is easy. Idiots can learn it in 21 days, even if they are dummies. Lets analyze what a title like Learn C+ in Thre

5、e Days could mean: Learn: In 3 days you wont have time to write several significant programs, and learn from your successes and failures with them. You wont have time to work with an experienced programmer and understand what it is like to live in a C+ environment. In short, you wont have time to le

6、arn 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 dangerous thing. C+: In 3 days you might be able to learn some of the syntax of C+ (if you already know another language), but you couldnt learn much ab

7、out how to use the language. In short, if you were, say, a Basic programmer, you could learn to write programs in the style of Basic using C+ syntax, but you couldnt learn what C+ is actually good (and bad) for. So whats the point? Alan Perlis once said: A language that doesnt affect the way you thi

8、nk about programming, is not worth knowing. One possible point is that you have to learn a tiny bit of C+ (or more likely, something like JavaScript or Flashs Flex) because you need to interface with an existing tool to accomplish a specific task. But then youre not learning how to program; youre le

9、arning to accomplish that task. in Three Days: Unfortunately, this is not enough, as the next section shows. Teach Yourself Programming in Ten YearsResearchers (Bloom (1985), Bryan & Harter (1899), Hayes (1989), Simmon & Chase (1973) have shown it takes about ten years to develop expertise in any of

10、 a wide variety of areas, including chess playing, music composition, telegraph operation, painting, piano playing, swimming, tennis, and research in neuropsychology and topology. The key is deliberative practice: not just doing it again and again, but challenging yourself with a task that is just b

11、eyond your current ability, trying it, analyzing your performance while and after doing it, and correcting any mistakes. Then repeat. And repeat again. There appear to be no real shortcuts: even Mozart, who was a musical prodigy at age 4, took 13 more years before he began to produce world-class mus

12、ic. In another genre, the Beatles seemed to burst onto the scene with a string of #1 hits and an appearance on the Ed Sullivan show in 1964. But they had been playing small clubs in Liverpool and Hamburg since 1957, and while they had mass appeal early on, their first great critical success, Sgt. Pe

13、ppers, was released in 1967. Malcolm Gladwell reports that a study of students at the Berlin Academy of Music compared the top, middle, and bottom third of the class and asked them how much they had practiced: Everyone, from all three groups, started playing at roughly the same time - around the age

14、 of five. In those first few years, everyone practised roughly the same amount - about two or three hours a week. But around the age of eight real differences started to emerge. The students who would end up as the best in their class began to practise more than everyone else: six hours a week by ag

15、e nine, eight by age 12, 16 a week by age 14, and up and up, until by the age of 20 they were practising well over 30 hours a week. By the age of 20, the elite performers had all totalled 10,000 hours of practice over the course of their lives. The merely good students had totalled, by contrast, 8,0

16、00 hours, and the future music teachers just over 4,000 hours. So it may be that 10,000 hours, not 10 years, is the magic number. (Henri Cartier-Bresson (1908-2004) said Your first 10,000 photographs are your worst, but he shot more than one an hour.) Samuel Johnson (1709-1784) thought it took even longer: Excellence in any department can be attained only by the labor of a lifetime; it is not to be purchased a

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号