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.

找一个会编程的朋友。让他们为你建立一个可以编辑和运行程序的系统。使用他们建议初学者使用的任何语言(可能是Python或Ruby)。然后拿起奥莱利的书,开始读它。

当您学习编写和运行程序的机制时,开始考虑要编写的特定程序。这会激励你学习更多。

不要从一个太大的问题开始。一个好的开始方法是使用一个现有的程序并修改它来做一些新的事情。

一开始你的程序会很难看,但是不用担心。每个人都是。坚持下去,他们会好起来的。

当你学习时,你会发现看别人写的程序很有用。但是一旦你尝试过自己编程,你就会从中学到更多。

最后,找一些喜欢写程序的朋友。他们可以回答你的技术问题;你会从与他们的交谈中获得新的想法;他们将是你第一次努力的听众。

猜你喜欢

转载自www.cnblogs.com/Jmmm/p/11601335.html
今日推荐