C(函数式编程)VS C ++(面向对象编程) [英] C (functional programming) VS C++ (object oriented programming)

查看:90
本文介绍了C(函数式编程)VS C ++(面向对象编程)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我变得越来越孤独...

每个人都告诉我C ++更好,因为一旦项目变得非常大,我应该感到高兴它是用C ++而不是C编写的。

我是唯一一个认为C是一种优秀的编程语言并且没有需要编程的
的人事物面向对象。


很多人也说他们通过编程项目节省了更多的时间

面向对象,但我认为更快地对它们进行编程

结构化的功能方式。


您怎么看?


-

- = Joe Mayo * = -

*这是假名。

解决方案

Joe Mayo写道:


我想我变得越来越孤单...



偶尔尝试洗澡......


每个人都告诉我C ++更好,


对于某些值Everybody...


因为一旦项目成为

非常大,我应该感到高兴的是它是用C ++编写的而不是C.



不,你应该感到遗憾的是它是用C ++而不是Intercal编写的。 />


我是唯一一个认为C是一种优秀的编程语言的人,而且b $ b不需要编写面向对象的东西。



真的吗?你是唯一这么想的人吗?这对我来说是个新闻......


很多人也说他们通过编程项目节省了更多的时间

面向对象,但是我认为以更好的结构化功能方式对它们进行编程会更快。


你怎么看?



我认为你应该找到一个小组讨论各种语言的专业和

cons ...这可能不是''它。


Joe Mayo说:


我想我变得越来越孤单......

每个人都告诉我C ++更好,



嗯,不是每个人。那些告诉你C ++比C好的人会分成两类:


1)从未花费时间掌握C的人;

2)那些/有/花时间掌握C和C ++的人,以及谁b / b已经发现C ++符合他们更好地考虑编程的方式
比C更好。


相反,告诉你C的人比C ++好,分为两个
类别:


1)那些从未花费过必要时间来掌握C ++的人;

2)那些/有/花时间掌握C和C ++的人,以及谁

已经发现C符合他们对编程的思考方式比C ++更好。

< snip>


我是唯一一个认为C是一种优秀的编程语言的人,而且b $ b不需要编写面向对象的东西。



不,你不是。


很多人也说他们节省了更多的时间编程项目

面向对象,



太棒了!让他们。同时,您可以通过编程来节省更多时间。

最适合您的方式。如果这意味着使用C,请使用C.


您怎么看?



他们是编程语言,而不是宗教。


-

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

电子邮件:-http:// www。 + rjh @

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

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


Mark Bluemel写道:


Joe Mayo写道:



< snip>


>很多人也说他们节省了更多的时间编程项目面向对象,但我认为以更好的结构化功能方式对它们进行编程会更快。

您如何看待?



我认为你应该找到一个小组讨论各种语言的专业和

cons ...这可能不是''它。



这样一个团队可能是comp.programming


但是这个特定的话题已经被无数次殴打致死<净价
。再次拉开它只会引发另一场火焰战。


I think I become more and more alone...
Everybody tells me that C++ is better, because once a project becomes
very large, I should be happy that it has been written in C++ and not C.
I''m the only guy thinking that C is a great programming language and
that there is no need to program things object oriented.

Many people says also that they save more time by programming projects
object oriented, but I think its faster to program them in a good
structured functional way.

What do you think?

--
-= Joe Mayo* =-
* This is a fake name.

解决方案

Joe Mayo wrote:

I think I become more and more alone...

Try bathing occasionally...

Everybody tells me that C++ is better,

For some value of "Everybody"...

because once a project becomes
very large, I should be happy that it has been written in C++ and not C.

No you should be sad that it was written in C++ not Intercal.

I''m the only guy thinking that C is a great programming language and
that there is no need to program things object oriented.

Really? You''re the only guy thinking that? That''s news to me...

Many people says also that they save more time by programming projects
object oriented, but I think its faster to program them in a good
structured functional way.

What do you think?

I think that that you should find a group which discusses the pros and
cons of various languages... This probably isn''t it.


Joe Mayo said:

I think I become more and more alone...
Everybody tells me that C++ is better,

Well, not everybody. The people who tell you C++ is better than C fall into
two categories:

1) the ones who have never spent the time necessary to master C;
2) the ones who /have/ spent the time mastering both C and C++, and who
have discovered that C++ fits the way they think about programming better
than C does.

Conversely, the people who tell you C is better than C++ fall into two
categories:

1) the ones who have never spent the time necessary to master C++;
2) the ones who /have/ spent the time mastering both C and C++, and who
have discovered that C fits the way they think about programming better
than C++ does.

<snip>

I''m the only guy thinking that C is a great programming language and
that there is no need to program things object oriented.

No, you aren''t.

Many people says also that they save more time by programming projects
object oriented,

Great! Let them. Meanwhile, feel free to save more time by programming them
the way that suits you best. If that means using C, use C.

What do you think?

They''re programming languages, not religions.

--
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


Mark Bluemel wrote:

Joe Mayo wrote:

<snip>

>Many people says also that they save more time by programming projects
object oriented, but I think its faster to program them in a good
structured functional way.

What do you think?


I think that that you should find a group which discusses the pros and
cons of various languages... This probably isn''t it.

Such a group might be comp.programming

But this particular topic has been beaten to death countless times all over
the Net. Broaching it again is only likely to start yet another flame war.


这篇关于C(函数式编程)VS C ++(面向对象编程)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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