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)。等我找到好玩的项目了,再来跟大家分享!(未完待续)

Get started in the world of software development: go from zero knowledge of programming to comfortably writing small to medium-sized programs in Python. Programming can be intimidating (especially when most books on software require you to know and use obscure command line instructions) but it doesn’t have to be that way! In Learn to Program with Python, author Irv Kalb uses his in-person teaching experience to guide you through learning the Python computer programming language. He uses a conversational style to make you feel as though he is your personal tutor. All material is laid out in a thoughtful manner, each lesson building on previous ones. Many real–world analogies make the material easy to relate to. A wide variety of well-documented examples are provided. Along the way, you’ll develop small programs on your own through a series of coding challenges that reinforce the content of the chapters What You Will Learn: Learn fundamental programming concepts including: variables and assignment statements, functions, conditionals, loops, lists, strings, file input and output, Internet data, and data structures Get comfortable with the free IDLE Interactive Development Environment (IDE), which you will use to write and debug all your Python code – no need to use the command line! Build text-based programs, including a number of simple games Learn how to re-use code by building your own modules Use Python’s built-in data structures and packages to represent and make use of complex data from the Internet
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值