How can I learn to program?

黑客与画家:硅谷创业之父paul graham关于回答‘How can I learn to program’

 

How can I learn to program?

Find a friend who knows how to program. Get them to set you up with a system where you can edit and run programs. Use whatever language they suggest for a beginner (probably it will be Python or Ruby). Then get the O'Reilly book and start working through it.


As you learn the mechanics of writing and running a program, start thinking about specific programs you want to write. That will motivate you to learn more.

Don't start with a problem that's too big. A good way to begin is to take an existing program and modify it to do something new.

Initially your programs will be ugly, but don't worry about that. Everyone's are. Just keep going, and they'll get better.

As you learn, you'll find it useful to look at programs other people have written. But you'll learn more from this once you've tried programming yourself.

Finally, find friends who like to write programs. They can answer your technical questions; you'll get new ideas from talking to them; and they'll be the audience for your first efforts. 

看完这段话:

Find a friend who knows how to program. Get them to set you up with a system where you can edit and run programs. Use whatever language they suggest for a beginner (probably it will be Python or Ruby). Then get the O'Reilly book and start working through it.

找一个会编程的朋友,让他教你基本的安装和基本编程知识(廖雪峰——http://www.liaoxuefeng.com/),随便用什么语言(--python大法好!)。然后找一些入门级别的书(我推荐——python核心编程2版)

As you learn the mechanics of writing and running a program, start thinking about specific programs you want to write. That will motivate you to learn more.
当你学会基本的语法之后,就去写一个具体的,你感兴趣的程序(没想好看下面)。这样你就有动力去学更多!
Don't start with a problem that's too big. A good way to begin is to take an existing program and modify it to do something new.

不要开始就给自己一个难的任务,最好的方法就是在现有的一个程序上修改,在这个基础上改出新的东西

 

我有目标了,就是找一个自己感兴趣的开源python程序(github)。等我找到好玩的项目了,再来跟大家分享!(未完待续)

你可能感兴趣的:(How can I learn to program?)