Advertisement

C or C++?

Started by April 11, 2001 02:38 PM
75 comments, last by Chronoslade 23 years, 10 months ago
Note I have never claimed that c++ can''t do the things that c can. Since c++ is more or less a superset of c that is obviously not true. I just meant the c is more natural to make low level stuff, I mean if you don''t use the highlevel stuff of c++ why use c++ instead of c ?

I have tried maybe 10 different programming languages and I''m still waiting for a good one. I really don''t think there is a language that is even close to perfect.

Just because a language has more features doesn''t necessarly make it better, it might just make it more messier. However, even if I don''t like all the features of c++ and I think all lot of is really bad, I still think that it''s slightly better than c. If it''s enough to make it worth a change... that is a tough question. But I''m really considering to change because c lack some important features that c++ has a halfgood solution to.
What I don''t like is the almost religous worship some people have to c++. I''m almost certain that c++ or c++ clones will not exist in the near future. They are simply not good enough. They are to errorprone and unnatural for humans. Functional languages are better suited but a bit undeveloped at the moment. But I don''t even think functional languages is the solution for the future. I know one still better one but it''s really hard to explain and even harder to realize. Todays languages are still constructed around the machine instead of the human mind. And as long as they are they will be a serious limit for what software will be able to do and how complex they can be. The biggest fault that todays languages have is that they are mainly seqential. That is how machines work, not the human mind.
blablabla.
In future if you want to talk about it there will be quantuum computers which work completely different, but not like the human mind make a programming language for such a computer based on the human mind would be fairly stupid. Since the result is limiting the machine to the human. So something different has to be created and the human shouldn''t program such a computer anyways, but we are living in this time and at the moment and i think it will be for a very long time c++ is somthing like the best choice. And by no means does c++ limit the complexity of a program, as long as you are staying in that boundary c++ is pretty damn good.

Maybe you people here should stop judging each others intelligence as this makes the person doing this look really stupid in its immature way of saying : "I am better than you will ever be!" As if that would matter in any way but go on maybe get some axes and go discuss your matters with help of these since it would match your ape like behaviour much more than flooding this message board with your stupid insults.
Advertisement
Come on, stop the arguing . C++ encompasses C. That means you can use a C++ compiler to do your C code just fine, just ignore all of that C++ stuff if you don''t like it. There''s nothing wrong with C, it can do all the stuff C++ can, it just does it in different ways. It''s more a matter of opinion and coding style than anything else .

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/
quote:
Original post by Anonymous Poster

Maybe you people here should stop judging each others intelligence as this makes the person doing this look really stupid in its immature way of saying : "I am better than you will ever be!" As if that would matter in any way but go on maybe get some axes and go discuss your matters with help of these since it would match your ape like behaviour much more than flooding this message board with your stupid insults.



Thou must needs seek another forum upon which to grind thy axe!


quote:
Original post by zel

Just because a language has more features doesn''t necessarly make it better, it might just make it more messier. However, even if I don''t like all the features of c++ and I think all lot of is really bad, I still think that it''s slightly better than c. If it''s enough to make it worth a change... that is a tough question. But I''m really considering to change because c lack some important features that c++ has a halfgood solution to.



I agree with your first point; however, comparing C to C++ is different than comparing C to, say, Delphi. Since C++ supports almost all of the C syntax and then provides additional features, a comparison between C and C++ must look at the additional features.

This is where the arguments break down, because most C programmers aren''t interested in debating individual features. They usually just stick with arguments like, "C is closer to the hardware," and, "increased complexity doesn''t make a language better." These are true, but all too often they are used to justify ignorance - when was the last time you ran into a C programmer who could code even a simple implementation of the C++ standard library containers? For low-level programmers, they sure know how to craft abstract arguments.

Don''t misunderstand me; not everyone has to know how to use C++, but please understand it before you enter into an argument. I was recently reminded of that


quote:
Original post by zel

What I don''t like is the almost religous worship some people have to c++. I''m almost certain that c++ or c++ clones will not exist in the near future. They are simply not good enough.



C++ has been around for over 15 years, and I don''t think it will disappear any time soon. You sound like you are living in the 1980s - one of them thar new-fangled languages j/k


quote:
Original post by zel

They are to errorprone and unnatural for humans. Functional languages are better suited but a bit undeveloped at the moment. But I don''t even think functional languages is the solution for the future. I know one still better one but it''s really hard to explain and even harder to realize. Todays languages are still constructed around the machine instead of the human mind. And as long as they are they will be a serious limit for what software will be able to do and how complex they can be. The biggest fault that todays languages have is that they are mainly seqential. That is how machines work, not the human mind.



Most arguments against C++ stem from a lack of understanding and logical thinking. You need to ground your thoughts in something more concrete; if you think C++ is a bad language, tell me why and let''s discuss it. I''m not looking for a flame war on this point; just an honest discussion. Perhaps you might want to start another thread, say, "Improving C++" or something constructive like that?
Learn C and then C++. It saves me the frustration of having to explain the c standard library to you(learn the c standard library).

A good reason to use C: It translates into asm easier. John Carmacks reason. Easier to debug that way. If you dont know assembly or dont plan on using it, C++ will probably be the better way to go, seeing as C is more usefull for systems programmers and that sort. C++ is more of a language for higher level products, and c is for low level, operating systems and the like.

-----------------------------

A wise man once said "A person with half a clue is more dangerous than a person with or without one."

The Micro$haft BSOD T-Shirt
-----------------------------A wise man once said "A person with half a clue is more dangerous than a person with or without one."The Micro$haft BSOD T-Shirt
Sorry, I didn''t think my question would cause such a ruckess, but after reading the above posts I have another question. I am not clear on this is it possible to use assembly language in C++ or can it only be implemented in C?

"There is humor in everything depending on which prespective you look from."
"There is humor in everything depending on which prespective you look from."
Advertisement
Both C and C++ support "asm()", which allows you to insert a string of assembly. However, just about any language that can be compiled into machine code can use assembly routines...
Beware that inline assembler, like null_pointer just posted, is not standard (i.e. part of C++) but is implementation-specific.
C++ feels more structured...it makes me all warm and fuzy inside...c doesn''t give me that feeling...too unorthodoxed in my opinion! (or maybe it''s just me)

regards,
ecko_53



-----------------------------------------------------------
"If I wanted to hear the pitter patter of little feet I would put shoes on my cat"
-----------------------------------------------------------"People who usualy use the word pedantic usualy are pedantic!"-me
quote:
Original post by tcs

I''m always shocked when I see how many people use C... Use C++, C was dead since the C++ came out...

Tim

--------------------------
glvelocity.gamedev.net
www.gamedev.net/hosted/glvelocity


I''m shocked Q3 was in c!



-----------------------------------------------------------
"If I wanted to hear the pitter patter of little feet I would put shoes on my cat"
-----------------------------------------------------------"People who usualy use the word pedantic usualy are pedantic!"-me

This topic is closed to new replies.

Advertisement