C++ or just C ?
-
Last week I bought a new Book, C++ by Bjarne Stoustrup! After som lurking in the book I found out that my C++ realy was C with some C++ :-/ Here I was thinking what a *good* C++ programmer I was and discovered that my skills are a bit lower! Am I the only one that feel that way? /Jarek Gibek
-
Last week I bought a new Book, C++ by Bjarne Stoustrup! After som lurking in the book I found out that my C++ realy was C with some C++ :-/ Here I was thinking what a *good* C++ programmer I was and discovered that my skills are a bit lower! Am I the only one that feel that way? /Jarek Gibek
it took me a long time to realize that using classes as C-style modules wasn't really OO. for me, things like inheritance and virtual functions took a long time to sick in; not that i didn't understand them, i just didn't utilize them when designing a class. for a long time, i would just stuff functions into general purpose utility classes. i think i'm a decent OO programmer now, but i still have no problem reverting to plain old C when i need to... those books have the same effect on me - they show the reader how to solve problems using elegant OO techniques. but the problems are often artificial (designed to illustrate the OO techniques). so, i just try to absorb as much of the techniques as i can, and hope i'll find a problem that needs them before they fade from memory... -c
-
Last week I bought a new Book, C++ by Bjarne Stoustrup! After som lurking in the book I found out that my C++ realy was C with some C++ :-/ Here I was thinking what a *good* C++ programmer I was and discovered that my skills are a bit lower! Am I the only one that feel that way? /Jarek Gibek
I have been noticing this too recently, and I haven't even gotten Bjarne's book yet! Surely when I do I will realize even more OO flaws. Are you a windows programmer? I am, and I think this contributes to my mixing of C and C++. Because the Windows api is C, C++ code for windows will always have a little C, unless you use wrapper classes (or MFC) for every little thing (do you really never use POINT instead of CPoint?). So I guess we can partially blame this one on Microsoft :-D