Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Rob Loach

Why C? What's wrong with C++?

This topic is 5614 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m in a first year computer programming course at college and we are required to take a course named "Programming in C"... But why? Why not C++? I don''t see why C even still exists with C++ out...... OOP kicks ass. Why not teach us C++ OOP instead? I''m sure they "want us to learn the basics first" but why not learn the basics of C++? I know this will post will probably be flamed to hell, but oh well... I want some answers.... I''ll go in and ask the prof tomorrow too.
- Rob Loach Current Project: Go Through Object-Oriented Programming in C++ by Robert Lafore "Do or do not. There is no try." - Yoda

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Didn''t we already have this thread yesterday?

Share this post


Link to post
Share on other sites
yeah, before posting anything here, read the entire thread here. And then post there, not here.


How appropriate. You fight like a cow.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
bis bis bis bis
NOT MORE C vs C++ THREADS PLEASE!! I HATE IT

I hate that they despise C and praise a language that is practically the same thing, if you like C++, program in C++ but not despising a language with which even we continue programming many people, and with which the same things can be done.

Share this post


Link to post
Share on other sites
Regardless of what type of programming you prefer and which language is ''better'' than others, you shouldn''t limit yourself to a single paradigm of programming. It''s a bad idea to just learn OOP and forget about procedural, functional, relational, and scripting languages. Learn as many ways to look at a problem as possible. You''ll be more versatile and better able to adapt to changes in the industry. By the year 2020, there will probably be something other than object oriented programming that is the most widely used technique. If you put all your eggs in the OO basket, you might be screwed. OOP is not the know all solve all approach to computer science and you''re selling yourself short if it''s all you learn.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
I hate that they despise C and praise a language that is practically the same thing, if you like C++, program in C++ but not despising a language with which even we continue programming many people, and with which the same things can be done.


I don''t "despise" C, I''m just wondering why my course is teaching it when we are moving up to C++ later on in the program.


kdogg - Thanks for the positive insight.



- Rob Loach
Current Project: Go Through Object-Oriented Programming in C++ by Robert Lafore

"Do or do not. There is no try."
- Yoda

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
ROB
***
>I''m in a first year computer programming course at college and >we are required to take a course named "Programming in C"...

ya and? where is your problem? i''m at a university and we have to learn c, java, prolog, haskell and a thing thats called sather k.
i only can say, dont think about that and take it as it is

>But why? Why not C++? I don''t see why C even still exists with >C++ out......

have you ever taken a look at the print out of the c++ standard its very very thick *g* and i thinking there is no compiler that implements this standard completely...so to learn c is very much easier, and if you can do c you would be able to learn c++ very fast, or other languages with a similar syntax

and from c to oop programming it isnt a big step
http://ootips.org/oop-in-c.html for example...try google this would give you some more sites

>I''m sure they "want us to learn the basics first" but why not >learn the basics of C++?

so why not learn the basics of c?

>I''ll go in and ask the prof tomorrow too.

ya ask him, he probably would say that u can be happy that you dont have to learn turbo pascal

bye

apo





Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You have the chance to be taught C. If you wanted to take a private course look up how much that would cost. Then see if you begrudge it.

Enjoy learning. Kids have always asked ''why do we need to learn this?'' I guess a good answer is ''because then you''ll know you know it''.

Knowing what C is all about is an important thing in the context of modern programming languages.

Who taught you that ''OOP kicks ass''? Did they tell you that was the whole point? Maybe you should change colleges after all.

Share this post


Link to post
Share on other sites
First of, C++ is much more than just "C with classes", and as it has been mentioned above, its a huge language with many compilers deviating from the standard in interesting ways.

C is a good choice for an (intro) programming course, its simple but still forces you to understand whats actually going on in the computer, which can be good to know when you start using higher level languages like C++, Java or C#. And when you start programming C++, its good to know that you can always fall back on a bit of C code( or i suspect so, i was taught Java,C++,SML in that order so i dont use C code in C++ ).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!