Quote:
Originally Posted by Dr. Coxxy
flamewar just begun.
just opened one of my C-books at random position and first thing i see is a chapter about heap fragmention.
sorry, but i never saw a c++ book which handles things like this.
|
because its not necessary.
do you even read my posts?
i dont think so, otherwise you would not call it flamewar.
Quote:
goto is shit?
yes it CAN be shit if used wrong...
|
yes and therefore it is.
Quote:
|
all these things are not fault of the language c++, but c++ books, tuts or whatsoever tend to ignore those...
|
the language is not bad, because so many noobs write tutorials and books.
they also exist for C.
Quote:
|
and sorry you cant use the c++ file class everywhere...
|
you can.
Quote:
|
and just to repeat, its not the fault of the language c++ (since its superior to c as a language...), but fault of the ppl who write c++ books and say 'heres everything you need, you dont need to learn c, c++ is BETTER' and then fill 1/5 of the book with some C-basics and continue with the object orientation without teaching them c properly.
|
because they DONT HAVE TO teach them c properly, only the procedural part of c++.
Quote:
most c books cover that.
because most c books arent layed out for windows, linux or generally 32/64 bit.
|
i dont see a reason why a book should cover microcontrollers.
you just dont understand programming o.ô highlevel languages were designed to abstract the hardware!!
if you want to program microcontrollers, you learn asm and buy a book which covers programming them with C/C++ and ASM.
you DONT have to learn it in a normal real-world beginner book.
If you think a programmer has to know that, you're really uninformed. Of course he should have a basic understanding of the hardware, but he does not need to know how to program a microcontroller for that.
It's just the basic concept of labor division and only knowing that you have to know.
A system developer reads books you have mentioned. But why should one who just wants to learn programming learn something about hardware programming?
That would be ridiculous.
And if you learned C++ and want to develope systems or program hardware: There is no problem. You can do it in C++ (if you want, in the procedural part only) and there would be no problem to learn the needed C stuff.
If one is really not able to deal with it and can only survive with classes, I dont call him a good C++ programmer, thats it. Therefore your whole argumentation is invalid.
So again:
Learning C++ first does not fuck up your style.
Learning C first does, if you want to program "normal" applications.
(Moep explained it very well)
Quote:
|
got no example for File class if you dont want to optimize or have limited hardware capabilities, but anyway go on using something you dont understand.
|
Yeah. Go on insulting good programmers, just because they like classes.
Seriously, your whole argumentation style is crap.
OF COURSE you can only use the file class where it is implemented. You can only use the C standard on systems where it is implemented as well!
And the class also supports raw data manipulation, so there is no real overhead.
Quote:
|
sry most c++ coders who havent learned a procedural language properly (c in this case...), will get lost after they cant use their uber classes...
|
Most C coders are getting lost in the new and very common OOP world

Of course, it is a generalization, as yours is.
Quote:
|
i guess you can say that by your years of experience in knowing good C-coders...
|
No, but by reading about others' experiences.
Quote:
|
and as i already said, i have nothing against c++, but you should learn c proper before you go over to c++.
|
no, not if you dont need it.
Quote:
yep but most c++ books dont teach the procedural way.
they only introduce with it like 1/5 of the book (yes, that is not enough), or they require that youve learned C first.
if you learned it properly - congratz.
havent seen a so called 'c++ book' which covered the basics properly.
|
Well, I begin to believe you dont even read books...especially no C++ books.