3 ms·
Are you talking about learning OO to apply in C? Learning modern C++ OO won't help much. A little, but not much. A quick google on "object oriented c" produced
by jerf 16y ago
Are you talking about learning OO to apply in C? Learning modern C++ OO won't help much. A little, but not much. A quick google on "object oriented c" produced a boatload of good-looking sources.
Remember, object orientation is an attribute of a program, not a programming language. A given language may encourage or even force a certain paradigm, but it's still a property of the resulting program. An "object oriented" language is simply a language in which it is difficult or impossible to produce a program that does not have that property. Object-oriented programming in C is perfectly possible, and often quite desirable. It isn't quite as slick but it's not terribly hard.
(That said, NewSoftzzz's suggestion of the C++ FAQ Lite is still a good one. I think it's just plain required reading, personally. Even if you don't program in C++, it will step you through a lot of scenarios in one very popular OO paradigm and simply by understanding one paradigm perfectly, it is easier to understand and use the next. If this seems contradictory to my first paragraph, blame English. This is theoretically helpful, learning C++ won't practically help you much in C.)
- colinb 16y agoNo. I've spent far more of my working life puzzling through OO in C to want to inflict it on others. But I've also become a fair to middling C programmer, and the strength I bring to that task has a much to do with knowing how to build large systems in a comprehensible way from the elements the language exposes, as it does to a basic knowledge of those elements. I.e. knowing how to code a case statement isn't the same as building a 50x400 state machine that's efficient, robust and debuggable. I suspect the same is true of the skills and knowledge held by an experienced C++ hacker. So I suspect that the C++ FAQ, and the Sutter book are just the ticket. thanks c