关于学习编程语言的问题。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
bobobo80
帖子: 841
注册时间: 2007-12-09 22:36
联系:

#16

帖子 bobobo80 » 2008-03-10 22:36

wyylling 写了:
bobobo80 写了:能说说c++,java,perl,python,都有什么特色吗?
课上讲的c,我觉的不是很实用阿,我也只能算算线性回归,而只学学了一点点的vb,我觉得还实用一点,主要是简单和图形化吧。linux下可能是不太容易有这样图形化编程软件吧。
这位真是大哥,本来不打算回了,实在忍不住了。居然说c不实用。。。真不知道你怎么会跑这儿来
在下不才,虽然课本上的考的不错,但确实不知能做些什么实用小程序(除了数学应用题),能不能举个例子?应用循环,数组,函数,指针。
头像
goter
帖子: 59
注册时间: 2007-10-14 4:08

#17

帖子 goter » 2008-03-11 19:01

谭氏C是骗人的
头像
bobobo80
帖子: 841
注册时间: 2007-12-09 22:36
联系:

#18

帖子 bobobo80 » 2008-03-11 21:08

你们所说的谭氏是指谭浩强吗?我们学的就是他编的,清华大学出版社。
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#19

帖子 millenniumdark » 2008-03-13 0:31

bobobo80 写了:但确实不知能做些什么实用小程序(除了数学应用题),能不能举个例子?


代码: 全选


aptitude search ~Gimplemented-in::c$ | less

会列出ubuntu中部分用c写的程序。
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#20

帖子 millenniumdark » 2008-03-13 0:38

推荐阅读:

http://www.javaresearch.org/article/12568.htm


上文的英文版:

http://norvig.com/21-days.html


中文版没有翻的一段,关于选择语言的:

Appendix: Language Choice
Several people have asked what programming language they should learn first. There is no one answer, but consider these points:

* Use your friends. When asked "what operating system should I use, Windows, Unix, or Mac?", my answer is usually: "use whatever your friends use." The advantage you get from learning from your friends will offset any intrinsic difference between OS, or between programming languages. Also consider your future friends: the community of programmers that you will be a part of if you continue. Does your chosen language have a large growing community or a small dying one? Are there books, web sites, and online forums to get answers from? Do you like the people in those forums?
* Keep it simple. Programming languages such as C++ and Java are designed for professional development by large teams of experienced programmers who are concerned about the run-time efficiency of their code. As a result, these languages have complicated parts designed for these circumstances. You're concerned with learning to program. You don't need that complication. You want a language that was designed to be easy to learn and remember by a single new programmer.
* Play. Which way would you rather learn to play the piano: the normal, interactive way, in which you hear each note as soon as you hit a key, or "batch" mode, in which you only hear the notes after you finish a whole song? Clearly, interactive mode makes learning easier for the piano, and also for programming. Insist on a language with an interactive mode and use it.

Given these criteria, my recommendations for a first programming language would be Python or Scheme. But your circumstances may vary, and there are other good choices. If your age is a single-digit, you might prefer Alice or Squeak (older learners might also enjoy these). The important thing is that you choose and get started.


简单翻译:

选择第一门学习的语言,考虑三点:你的朋友用什么(那些你可以从他们身上学到东西的人用的是什么)?是否简单,对新手友好?是否是交互式的,能够及时得到反馈?

考虑这些,我的推荐是Python或Scheme。但是你的选择不一定和我一样,有其他的好 的选择。如果你的年龄只有一位数,推荐Alice或Squeak(年纪大的也可以选择这些)。重要的是你选了,而且开始学了。
头像
lrk
帖子: 83
注册时间: 2007-10-11 17:44

#21

帖子 lrk » 2008-03-13 10:07

goter 写了:谭氏C是骗人的
那我们应怎样学C才好,大家指点下。
头像
wuwud
帖子: 13
注册时间: 2007-06-06 15:49

#22

帖子 wuwud » 2008-03-13 11:11

其实C语言用到的地方真的很多,不过说怎么才能学好,这个就要多应用了,简单的说就是自己编程序,调试。
C语言的基础很简单,学的时候明白了,但是真的应用起来,还是会出现各种问题。
举个最简单的例子:

代码: 全选

char array[10];
for (i = 0; i < 10; ++i)
           array[i] = i;
array[10]是多少?
实际上array[10]已经越界了,是不可用的,但是实际编程中缺经常会出现类似问题,解决这些BUG就需要经验了。
中国特色:工资的增长速度永远比物价的增长速度低!
回复