Quote:
sry, but c++ only coders tend to overuse the object orientated aspect, like it would be java were you are 'forced' to use it.
this is my opinion i got from reading code snippets on the internet and reading bullshit code by friends...
|
But your opinion is wrong :P
There is just a little amount of projects (compared to most tasks a programmer has to do with) which should be realised in C instead of C++ for a good programmer (not a beginner who writes 1337 warrock hacks only), because most concepts can be described object-orientated and it does not always complicate it unnecessarily.
And again: You actually learn the procedural programming with C++! C++ is NOT ONLY object-orientated, it is procedural, oo and generic!
And a good programmer uses all of those techniques.
Every good book/tutorial starts with a few basic procedural aspects e.g.
Code:
int main()
{
std::cout << "hello world" << std::endl;
return 0;
}
There is just a single object and basically you use it like a function, there is not much object orientation in that code.
You must NOT mix up C code with a few features of C++ or procedural C++ and OO C++!
They are actually different types!
And be honest: If you learn a bit of C in every C++ book, you dont have to learn C first. You dont have to know anything about the C standard and thats the only thing you would skip by directly learning C++.
You can still look needed functions up later on.
(those warrock hack "coders" just copypaste (or at least they "learn" from it and imitate it) C++ code, so they basically see OO source codes of experienced programmers and overuse those techniques; I think that is what you experienced (not only for warrock^^))
edit:
Ah, btw. I find it interesting how experiences differ :D
I saw many people who just used the procedural part of C++, they just used C with a few extra-features like a string class. That is a bad style, as well as writing object-orientated only.