c / c ++:它是时代的结束吗? [英] c / c++ : is it end of era ?

查看:69
本文介绍了c / c ++:它是时代的结束吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始用c编程。很多项目都是用C ++完成的。我们

必须使用THE C ++。

我在c ++上阅读了3-4本书(包括Faqs,stroustrup)。我在本书的大部分内容中发现的是,他们批评了c语言和c $ / b $ b程序员。他们默默地逃避了C的优点。

他们有句话,你必须忘记学习C ++。


它是C时代的结束吗?

Stroustrup和Faqs的作者都是技术大师。这些人

正在评论C语言。

我们应该相信吗?

某个地方对于c程序员来说是令人沮丧的。


我只是想知道其他人对此的看法。

I started programming with c. Lot of projects are being done in C++. We
have to move in THE C++.
I read around 3 - 4 books (including Faqs, stroustrup) on c++. What i
found in most of the book is that they criticize c language and c
programmer. And they silently run away from good feature of C.
They have sentence like , "you have to unlearn c to learn C++".

is it the end of C era ?
Stroustrup and writers of Faqs are gurus of technologies. These people
are commenting on C language.
should we believe them?
somewhere it is demoralizing for c programmer.

I just wanted to know what other people thinks on this .

推荐答案

shaanxxxaécrit:
shaanxxx a écrit :

我开始用c编程。很多项目都是用C ++完成的。我们

必须使用THE C ++。

我在c ++上阅读了3-4本书(包括Faqs,stroustrup)。我在本书的大部分内容中发现的是,他们批评了c语言和c $ / b $ b程序员。他们默默地逃避了C的优点。

他们有句话,你必须忘记学习C ++。


它是C时代的结束吗?

Stroustrup和Faqs的作者都是技术大师。这些人

正在评论C语言。

我们应该相信吗?

某个地方对于c程序员来说是令人沮丧的。


我只是想知道其他人对此的看法。
I started programming with c. Lot of projects are being done in C++. We
have to move in THE C++.
I read around 3 - 4 books (including Faqs, stroustrup) on c++. What i
found in most of the book is that they criticize c language and c
programmer. And they silently run away from good feature of C.
They have sentence like , "you have to unlearn c to learn C++".

is it the end of C era ?
Stroustrup and writers of Faqs are gurus of technologies. These people
are commenting on C language.
should we believe them?
somewhere it is demoralizing for c programmer.

I just wanted to know what other people thinks on this .



C ++开始消除C陷阱,但不知道何时停止,<复杂的方式是



C的问题是缺少更高级别的构造

这将允许更简单的无错误的编程。


C ++最初是作为编译为C的预处理器,允许人们定义类,进行面向对象编程,以及<一般来说,
作为消除C问题的一种方式来增加一个新的范例(面向对象编程)和

通过更严格的类型来消除C的问题检查。


这导致了多重继承(第一个错误之一),然后是

然后是模板,名称空间和一系列令人难以置信的功能。 />
使C ++语言如此复杂,以至于编译器几乎不可能跟随它们。


现在看来,有可能一个或两个实现(EDG主要是

,也许是Comeau)实现所有语言。所有其他的

编译器(包括gcc和microsoft)实现了语言的大部分

,但不是全部。


了解整个语言的人很少,因为

学习曲线陡峭且无情。


显然,一种语言开始修复C或制作一个

更好的C显然需要一个理由,而且很难找到C语言方法中的问题很多东西,

因为语言中的错误不是'难以找到。


C ++增加了复杂性而没有真正解决许多问题C.还是你必须手动分配/解除分配

您想要使用的内存,例如没有自动垃圾

收藏家。


在我看来,有些C ++的功能很有意思,而且值得花一些时间,但是它们中有太多的语言太多了。

大。


jacob

C++ started to eliminate C pitfalls but did not know when to stop,
in the way of complexity.

The problem with C is the lack of higher level constructs
that would allow a simpler and bug-free programming.

C++ started out as a preprocessor that compiled to C, that allowed
people to define classes, do object oriented programming, and
in general, as a way of eliminating the problems of C by
adding a new paradigm (object oriented programming) and
by making stricter type checking.

This led to multiple inheritance (one of the first mistakes), and
then templates, name spaces, and an incredible array of features
that make C++ a language so complex that has been almost impossible for
the compilers to follow.

As it stands now, there are maybe one or two implementations (EDG mainly
and maybe Comeau) that implement ALL of the language. All the other
compilers (gcc and microsoft included) implement some large subset of
the language, but not all of it.

People that understand the whole language are very few, since the
learning curve is steep, and unforgiving.

Obviously a language that started to "fix C" or to make a
"better C" is obviously in need of a reason, and it is not
very difficult to find problems with the approach in C to many things,
since the bugs in the language aren''t that difficult to find.

C++ has added complexity without really having solved many of
the problems of C. Still you have to allocate/deallocate manually
the memory you want to use, without having an automatic garbage
collector, for instance.

In my opinion, some of the features of C++ are interesting, and
worthwhile, but too many of them make for a language that is just too
big.

jacob




shaanxxx写道:

shaanxxx wrote:

我开始编程与c。很多项目都是用C ++完成的。我们

必须使用THE C ++。

我在c ++上阅读了3-4本书(包括Faqs,stroustrup)。我在本书的大部分内容中发现的是,他们批评了c语言和c $ / b $ b程序员。他们默默地逃避了C的优点。

他们有句话,你必须忘记学习C ++。


它是C时代的结束吗?

Stroustrup和Faqs的作者都是技术大师。这些人

正在评论C语言。

我们应该相信吗?

某个地方对于c程序员来说是令人沮丧的。


我只是想知道其他人对此的看法。
I started programming with c. Lot of projects are being done in C++. We
have to move in THE C++.
I read around 3 - 4 books (including Faqs, stroustrup) on c++. What i
found in most of the book is that they criticize c language and c
programmer. And they silently run away from good feature of C.
They have sentence like , "you have to unlearn c to learn C++".

is it the end of C era ?
Stroustrup and writers of Faqs are gurus of technologies. These people
are commenting on C language.
should we believe them?
somewhere it is demoralizing for c programmer.

I just wanted to know what other people thinks on this .



COBOL已经消失了吗?

编号这种kludgy 1950语言仍然坚持,因为它有巨大的

安装基础并且实际上比其他

语言更好地解决了一些问题(例如,看看这里涉及货币的一些最近的线程

交易,COBOL可以自由处理)。


语言一旦流行就不会过时。问题域

对于C和C ++来说并不完全相同。对于某些项目,C ++会更好

,对于某些项目,C会更好。


同样重要的是可用于项目的资源。如果你有50个优秀的C程序员和3个优秀的C ++程序员,那么你的大部分b / b $ b项目将是C项目,因为这是你可以维护的。


人们经常预言各种流行的

计算机语言的消亡。他们总是错的。

Has COBOL gone away?
No. This kludgy 1950 language still clings on because it has a huge
installed base and actually solves some problems better than other
languages (e.g. look at some recent threads here involving currency
transactions which COBOL can handle with aplomb).

Languages do not go obsolete once they get popular. The problem domain
for C and C++ is not identical. For some projects C++ will be better
and for some projects C will be better.

Also important is the resources available for projects. If you have 50
good C programmers and 3 good C++ programmers, then most of your
projects will be C projects because that is what you can maintain.

People frequently prophecise about the demise of various popular
computer languages. They are always wrong.


2006-12-26,shaanxxx< sh ****** @ yahoo.comwrote:
On 2006-12-26, shaanxxx <sh******@yahoo.comwrote:

我开始用c编程。很多项目都是用C ++完成的。我们

必须使用THE C ++。

我在c ++上阅读了3-4本书(包括Faqs,stroustrup)。我在本书的大部分内容中发现的是,他们批评了c语言和c $ / b $ b程序员。他们默默地逃避了C的优点。

他们有句话,你必须忘记学习C ++。


它是C时代的结束吗?
I started programming with c. Lot of projects are being done in C++. We
have to move in THE C++.
I read around 3 - 4 books (including Faqs, stroustrup) on c++. What i
found in most of the book is that they criticize c language and c
programmer. And they silently run away from good feature of C.
They have sentence like , "you have to unlearn c to learn C++".

is it the end of C era ?



C仍然被广泛使用,包括用于新项目。


大多数有意识的人都意识到C ++都有不一定

意味着OOP,并且OOP不是银弹。无论如何。


在熟悉并理解两种语言的人中,很多人比较喜欢C ++而很多人更喜欢C.


大多数程序员都有关于两种语言中的错误代码的恐怖故事,以及在漫长的冬季夜晚消失的b $ b。

C is still very widely used, including for new projects.

Most people with any sense realize both that C++ does not necessarily
mean OOP, and that OOP is not a "silver bullet" anyway.

Out of people who know and understand quite well both languages, many
prefer C++ and many prefer C.

Most programmers have horror stories about bad code in both languages to
while away the long winter evenings.


Stroustrup和作家常见问题解答是技术大师。这些人

正在评论C语言。

我们应该相信吗?
Stroustrup and writers of Faqs are gurus of technologies. These people
are commenting on C language.
should we believe them?



他们不是完全公正的大师。

They''re not exactly impartial gurus though.


这篇关于c / c ++:它是时代的结束吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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