如何成为更好的C程序员? [英] How to be a better C programmer?

查看:76
本文介绍了如何成为更好的C程序员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我个人喜欢C,不喜欢任何OO语言。对OO语言而言,参考

书籍对我来说太沉重了。他们只是把事情弄得很复杂。有人嘲笑我的意见,说Google代码库

主要用C ++编写。


我在某处读到了学习C(或编程)的最佳方法

语言一般)。我同意这些观点。我在下面引用它们:


最好的方法是阅读一些由

表格大师写的东西,自己写一些东西,阅读更多,写一点

更多,阅读更多,写更多......并重复直到你的写作开始发展这种力量和你看到的经济状况

你的模特。


对于C书,我仔细阅读了C编程语言,C

答案书和C拼图书。对于真正的C代码,我已经仔细阅读了大约20,000行由加州大学伯克利分校的人写的
。我自己写了大约15,000行的
,不包括微小的玩具程序。这是我的

情况。


我的问题是我在哪里可以找到

表格的主人写的东西 ; ?我认为BSD源代码是由大师编写的。我是对的吗?

I personally like C, and do not like any OO languages. The reference
books for OO languages are too heavy for me. They just made things
complicated. Someone laughed at my opinion, saying Google code bases
are mostly written in C++.

I read somewhere about the best way to learn C (or a programming
language in general). I agree with the points. I quote them below:

"The best way to do it is to read some stuff written by masters of the
form, write some things yourself, read a lot more, write a little
more, read a lot more, write some more ... and repeat until your
writing begins to develop the kind of strength and economy you see in
your models."

For C books, I have carefully read The C Programming Language, The C
Answer Book, and The C Puzzle Book. For real C code, I have carefully
read about 20,000 lines written by UC Berkeley guys. I myself have
written about 15,000 lines, not counting tiny toy programs. It is my
situation.

My question is where I can find "some stuff written by masters of the
form" ? I think BSD source code is written by masters. Am I right?

推荐答案

4月10日晚上8:37,istillsh ... @ gmail.com写道:
On Apr 10, 8:37 pm, istillsh...@gmail.com wrote:

我个人喜欢C,并且不喜欢任何OO语言。对OO语言而言,参考

书籍对我来说太沉重了。他们只是把事情弄得很复杂。有人嘲笑我的意见,说Google代码库

主要用C ++编写。


我在某处读到了学习C(或编程)的最佳方法

语言一般)。我同意这些观点。我在下面引用它们:


最好的方法是阅读一些由

表格大师写的东西,自己写一些东西,阅读更多,写一点

更多,阅读更多,写更多......并重复直到你的写作开始发展这种力量和你看到的经济状况

你的模特。


对于C书,我仔细阅读了C编程语言,C

答案书和C拼图书。对于真正的C代码,我已经仔细阅读了大约20,000行由加州大学伯克利分校的人写的
。我自己写了大约15,000行的
,不包括微小的玩具程序。这是我的

情况。


我的问题是我在哪里可以找到

表格的主人写的东西 ; ?我认为BSD源代码是由大师编写的。我对吗?
I personally like C, and do not like any OO languages. The reference
books for OO languages are too heavy for me. They just made things
complicated. Someone laughed at my opinion, saying Google code bases
are mostly written in C++.

I read somewhere about the best way to learn C (or a programming
language in general). I agree with the points. I quote them below:

"The best way to do it is to read some stuff written by masters of the
form, write some things yourself, read a lot more, write a little
more, read a lot more, write some more ... and repeat until your
writing begins to develop the kind of strength and economy you see in
your models."

For C books, I have carefully read The C Programming Language, The C
Answer Book, and The C Puzzle Book. For real C code, I have carefully
read about 20,000 lines written by UC Berkeley guys. I myself have
written about 15,000 lines, not counting tiny toy programs. It is my
situation.

My question is where I can find "some stuff written by masters of the
form" ? I think BSD source code is written by masters. Am I right?



顺便说一句,我认为PuTTY的作者是大师。我每天都用PuTTY

,我很喜欢它。我检查了它的源代码,并且对它也很感兴趣。

By the way, I think the author of PuTTY is a master. I used PuTTY
everyday and am fond of it. I examined its source code, and became
fond of it too.


顺便说一下,我认为PuTTY的作者是一个大师。我每天都用PuTTY

,我很喜欢它。我检查了它的源代码,并且对它也很感兴趣。

By the way, I think the author of PuTTY is a master. I use PuTTY
everyday and am fond of it. I examined its source code, and became
fond of it too.


4月11日凌晨2:38,用户923005 < dcor ... @ connx.comwrote:
On Apr 11, 2:38 am, user923005 <dcor...@connx.comwrote:

取决于谁写了它。 BSD和亲戚是由很多人写的。

例如:

如果Chris Torek写的话,那就好了。

如果Peter McIlroy写的那就好了。

如果Keith Bostic写的那么,那就很好。

如果Jon宾利写道,这很好。
Depends on who wrote it. BSD and relatives are written by a lot of
people.
For instance:
If Chris Torek wrote it, it''s good.
If Peter McIlroy wrote it, it''s good.
If Keith Bostic wrote it, it''s good.
If Jon Bentley wrote it, it''s good.



Terrence R. Lambert怎么样?

How about Terrence R. Lambert?


>

I想看看专家做了什么是一个好主意。但是理解算法的基本性质更重要。

否则,你会写出与他们一样漂亮的东西但是它

在表演中吹出大块。
>
I think looking at what experts did is a good idea. But it is more
important to understand the fundamental nature of algorithms.
Otherwise, you will write stuff that is as pretty as theirs but it
blows chunks in performance.



多年前我研究过数据结构的基础知识(在C中)。我现在无法回想起作者的名字。这是一本好书吗?我需要

来抽空再次查看。

I studied Fundamentals of Data Structure (in C) many years ago. I
could not recall the author''s name now. Is that a good book? I need
to find time to review it again.


这篇关于如何成为更好的C程序员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆