Richard Heathfields C编程文章 [英] Richard heathfields C programming article

查看:71
本文介绍了Richard Heathfields C编程文章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在通过MrRichard heathfields网站,它被写成

如下: -


有些人认为C在现代编程中没有任何作用

世界。我认为这个意见有更多的有效性,如果

它不是因为即使是那些表达它的人每天使用C代码每天b / b
他们意识到或不知道)。 C程序和库

被编织到现代编程世界的结构中,并且只有傻瓜才能认为是b $ b。


那么希思菲尔德先生你能否清楚地解释一下你的陈述?简短的

方式,即使我的同龄人大部分时间都会问这个问题,所以我可以给他们一些好的答案。


我的同事总是按照以下几点建议我: -


1)C为什么学习它,对我们这样的普通程序员来说没用,它

是书呆子的语言。


2)它在Windows开发中没有C语言的作用

环境...... ???说c纯粹是为了* nix环境)


3)对于普通程序员来说只是数据库设计的知识

的概念,SQL,SDLC,那么像java这样的语言或者C#将获得

面包和黄油...... ???


现在我有自己的问题


1)任何人都可以指出足够好的教程,展示如何在C中制作gui

应用程序(借助图形库),就像我们在

中一样java ... ???(没有诅咒请,我不喜欢它)


2)我听说过java编译器javac纯粹是用C语言编写的。这个陈述是多么真实...... ???

Hi,

I was going through Mr "Richard heathfields" site , it is written as
follows:-

Some people think C has no role to play in the modern programming
world. I would consider this opinion to have rather more validity if
it weren''t for the fact that even those who express it use C code on a
daily basis (whether they realise it or not). C programs and libraries
are woven into the very fabric of the modern programming world, and
only a fool thinks otherwise.

Well Mr heathfield can you explain your statement in a clear & brief
manner, even my peers ask this question most of the time, so that i
can give them some good answers.

my colleagues always advice me on the following lines:-

1)C why learn it, it is of no use for ordinary programmers like us,it
is a language for nerds.

2) it has no role of C language in a windows development
environment...???(they say c is purely for *nix environment)

3) for ordinary programmers just knowledge of database design
concepts, SQL,SDLC, then a language like java or C# will earn the
bread and butter...???

now i have got my own questions

1) can any one point out good enough tutorials showing how to make gui
app in C(with the help of graphical libraries) just as we do in
java...???(no curses please, i don''t like it)

2) I have heard that the java compiler javac is purely written in C
how true is this statement...???

推荐答案

在文章< 11 ********************** @ i38g2000prf.googlegroups .com> ;,

< so **** ******@gmail.com写的:
In article <11**********************@i38g2000prf.googlegroups .com>,
<so**********@gmail.comwrote:

>

我正在通过MrRichard heathfields网站,它写成
如下: -

有些人认为C在现代编程世界中没有任何作用。我认为这个意见有更多的有效性,如果不是因为即使那些表达它的人每天都使用C代码(无论他们是否意识到这一点)。 C程序和库被编织到现代编程世界的结构中,而且只有傻瓜才会这样认为。

希思菲尔德先生你能否清楚地解释你的陈述&安培;简短的方式,即使我的同事大部分时间都会问这个问题,所以我可以给他们一些好的答案。

我的同事总是建议我说明如下: -

1)C为什么学习它,对我们这样的普通程序员来说没用,它是一种书呆子的语言。
>Hi,

I was going through Mr "Richard heathfields" site , it is written as
follows:-

Some people think C has no role to play in the modern programming
world. I would consider this opinion to have rather more validity if
it weren''t for the fact that even those who express it use C code on a
daily basis (whether they realise it or not). C programs and libraries
are woven into the very fabric of the modern programming world, and
only a fool thinks otherwise.

Well Mr heathfield can you explain your statement in a clear & brief
manner, even my peers ask this question most of the time, so that i
can give them some good answers.

my colleagues always advice me on the following lines:-

1)C why learn it, it is of no use for ordinary programmers like us,it
is a language for nerds.



有很多很好的理由,但其中一个原因是它强迫你学习以某种方式思考编程这对你使用的任何其他语言都很有用。


它的两个主要方法是:

(a)它迫使你理解你在基本的b
级上所做的事情; C没有任何内置的高级抽象,所以如果你想要它们,你必须建立自己的抽象。这样做了几次

次将使你更容易理解当你使用的语言是什么时,下面会发生什么?
专为

而建。

(b)它会强迫你学习如何使你的程序正确,而不是

保护你免受错误的影响。如果你弄错了,那么

程序会以微妙和不显眼的方式打破,而且你经常需要了解你的程序是如何工作的,即使在那些部分也是如此/>
与bug出现的位置没有直接关系(当你遇到运行时出现问题时,你已经确定了
!),找到

出了什么问题。

There are a lot of good reasons, but one of them is that it forces you
to learn to think about programming in a way that will be useful with
any other language you use as well.

Two major ways that it does this are:
(a) It forces you to understand what you''re doing at a fundamental
level; C doesn''t have any built-in high-level abstractions, so if
you want them you have to build your own. Having done this a few
times will make it a lot easier to understand what''s going on
underneath when you''re using a language that has them pre-built for
you.
(b) It forces you to learn to get your programs right, by not
protecting you from your errors. If you get things wrong, the
program will break in subtle and unsubtle ways, and you will often
need to understand how your program works, even in parts that
aren''t directly related to where the bug is showing up (which you
already should by the time you run into runtime problems!), to find
out what really went wrong.


> 2)它在Windows开发环境中没有C语言的作用。 ..(他们说c纯粹用于* nix环境)
>2) it has no role of C language in a windows development
environment...???(they say c is purely for *nix environment)



我的日常工作涉及编写部署在Windows上的代码,以及

很多是用C语言完成的。事实上,每个人都讨厌不得不戳的代码的大部分内容是用
$ b以外的语言编写的。 $ b C,所以我的经验表明C是在Windows下开发的*更好的*

语言之一(虽然我不会要求

t帽子那是'代表性的。)

My day job involves writing code that gets deployed on Windows, and a
lot of that is done in C. In fact, most of the bits of the code that
everybody hates to have to poke at are written in languages other than
C, so my experience would indicate that C is one of the *better*
languages for developing under Windows (though I''m not going to claim
that that''s representative).


> 3)对于普通程序员而言只是数据库设计的知识概念,SQL,SDLC,然后像java或C#这样的语言将获得
面包和黄油...... ???
>3) for ordinary programmers just knowledge of database design
concepts, SQL,SDLC, then a language like java or C# will earn the
bread and butter...???



这取决于你想得到什么样的工作。

将你学习使用的工具限制在那些目前用于普通程序员工作的那些工具中,这可能是不明智的,但是,因为

这些工具往往会随着时间的推移发生变化并拥有更广泛的知识

base会让你更有可能知道*有用的东西*

任何给定的时间都可以让他们更方便地获取新工具



That depends what kind of job you want to get. It''s probably unwise to
restrict the tools you learn to use to only those that are currently
useful for getting a job for "ordinary programmers", though, since
those tools tend to change over time and having a broader knowledge
base both makes you more likely to know *something* that''s useful at
any given time and makes it easier to pick up new tools as they come
along.


> ;现在我有自己的问题

1)任何人都可以指出足够好的教程,展示如何在C中制作gui
应用程序(借助图形库)就像我们一样在
java ... ???(没有诅咒,我不喜欢)
>now i have got my own questions

1) can any one point out good enough tutorials showing how to make gui
app in C(with the help of graphical libraries) just as we do in
java...???(no curses please, i don''t like it)



1-57231-995-X

1-57231-995-X


> 2)我听说java编译器javac纯粹用C语言编写
这句话的真实性如何... ???
>2) I have heard that the java compiler javac is purely written in C
how true is this statement...???



我不会惊讶地发现Java中实现了javac(至少部分是
),但它会运行的JVM在这种情况下是

几乎绝对写在C.

dave

I would be unsurprised to find that javac is implemented (at least
partly) in Java, but the JVM that it would run on in that case is
almost definitely written in C.
dave


所以********** @ gmail.com 说:




我正在通过MrRichard heathfields网站,它被写成

如下: -


有些人认为C在现代编程中没有任何作用

世界。我认为这个意见有更多的有效性,如果

它不是因为即使是那些表达它的人每天使用C代码每天b / b
他们意识到或不知道)。 C程序和库

被编织到现代编程世界的结构中,并且只有傻瓜才能认为是b $ b。


那么希思菲尔德先生你能否清楚地解释一下你的陈述?简短

方式,
Hi,

I was going through Mr "Richard heathfields" site , it is written as
follows:-

Some people think C has no role to play in the modern programming
world. I would consider this opinion to have rather more validity if
it weren''t for the fact that even those who express it use C code on a
daily basis (whether they realise it or not). C programs and libraries
are woven into the very fabric of the modern programming world, and
only a fool thinks otherwise.

Well Mr heathfield can you explain your statement in a clear & brief
manner,



如果以上内容不够清楚并且足够简短,我很害怕我

不能强迫。

If the above is not clear enough and brief enough for you, I''m afraid I
can''t oblige.


即使我的同行大部分时间都会问这个问题,所以我可以给b $ b他们给出了一些很好的答案。


我的同事们总是按照以下几点建议我: -


1)C为什么学习它,它是像我们这样的普通程序员没有用,它

是书呆子的语言。
even my peers ask this question most of the time, so that i
can give them some good answers.

my colleagues always advice me on the following lines:-

1)C why learn it, it is of no use for ordinary programmers like us,it
is a language for nerds.



通过书呆子找出它们的含义。我只是一个普通的程序员,比如

你,我觉得C对我很有用。

Find out what they mean by "nerds". I''m just an ordinary programmer like
you, and I find that C is of a great deal of use to me.


2)它在Windows开发中没有C语言的作用

环境...... ???(他们说c纯粹是为了* nix环境)
2) it has no role of C language in a windows development
environment...???(they say c is purely for *nix environment)



我为Windows编写的C远远多于为Linux编写的。大多数时候我不会关心我的代码运行的操作系统,但是当我*关心时,原因

往往是我访问的Win32 API。所以,对我来说,C在Windows开发中扮演着非常重要的角色。

I write far more C for Windows than I do for Linux. Most of the time I
don''t care which OS my code runs on, but when I *do* care, the reason
tends to be that I am accessing the Win32 API. So, for me, C has a very
important role in Windows development.


>

3 )对于普通程序员而言,只需知识数据库设计

概念,SQL,SDLC,然后像java或C#这样的语言将获得

面包和黄油...... ???
>
3) for ordinary programmers just knowledge of database design
concepts, SQL,SDLC, then a language like java or C# will earn the
bread and butter...???



如果你想做的只是赚取面包和黄油,去找面包店的工作或

a乳品女工。

If all you want to do is earn bread and butter, go get a job as a baker or
a dairymaid.


现在我有自己的问题


1)任何人都能指出足够好的教程,展示如何制作gui
C中的
应用程序(借助图形库)就像我们在

java中所做的那样......(没有诅咒,我不喜欢它)
now i have got my own questions

1) can any one point out good enough tutorials showing how to make gui
app in C(with the help of graphical libraries) just as we do in
java...???(no curses please, i don''t like it)



我没有/正在/诅咒。


编程Windows,第5版,Charles Petzold,在Windows编程中是一个优秀的

教程(尽管如此,唉,C本身有点可怕)。这项工作可能被合理地视为规范。我不知道

规范的Linux等价物是什么,但GTK上有几本不错的书籍

存在。 (并且GTK已被移植到Windows,所以如果你愿意,你可以用一块石头杀死两只鸟。)

I wasn''t /going/ to curse.

"Programming Windows", 5th edition, by Charles Petzold, is an excellent
tutorial in Windows programming (although, alas, the C itself is a bit
dire). This work might reasonably be regarded as canonical. I don''t know
what the canonical Linux equivalent is, but several decent books on GTK
exist. (And GTK has been ported to Windows, so you can kill two birds with
one stone if you like.)


2)I听说java编译器javac纯粹用C语言编写
这句话是多么真实...... ???
2) I have heard that the java compiler javac is purely written in C
how true is this statement...???



我不知道,但如果确实如此,我不会感到惊讶。许多编译器

部分是书面的使用生成lexing和解析代码的工具,

,这段代码通常用C生成,所以典型的现代编译器可能至少部分用C语言编写。


-

Richard Heathfield< http://www.cpax.org.uk>

电邮:-http ://万维网。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

I don''t know, but I would not be surprised if it were true. Many compilers
are partly "written" using tools that generate lexing and parsing code,
and this code is typically generated in C, so a typical modern compiler is
likely to be at least partly written in C.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


所以***** *****@gmail.com 写道:
so**********@gmail.com wrote:

2)我听说java编译器javac纯粹用C语言编写

这句话的真实性...... ???
2) I have heard that the java compiler javac is purely written in C
how true is this statement...???



可能有用C编写的javac实现,但是我上次查看时,Sun的参考实现完全是用Java编写的。

There are probably javac implementations written in C, but the reference
implementation from Sun is entirely written in Java, last time I looked.


这篇关于Richard Heathfields C编程文章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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