Skip to main content
3 events
when toggle format what by license comment
Feb 15, 2022 at 5:48 comment added Victor Eijkhout I haven't been part of the C++ community long enough to have seen a tide turn. Inheritance definitely has its uses. In my field of scientific computing there are enough packages that use it. Maybe it only comes into play at a certain level of complexity. But yes, I really dislike the person/animal/whatever toy examples. From a taxonomical point of view they may make sense but not from a programming point where an object is a "packet of behaviors" as someone (you?) put it.
Feb 15, 2022 at 4:21 comment added Rushi If you'd keep nothing but first n last sentence you'd get not just my +1 but a bounty as well 😅. More seriously everyone seems to agree (almost) that all the famous inheritance egs are broken. But then hedge about saying that. (you come closest). So I guess the real question : When did the tide turn? And can you situate it in the mouths of some "big OO guy" like Stroustrup, B Meyer, Booch etc?? Closest I get is "Accelerated C++" saying «Forget all the fancy C++ . Just use STL. Write real significant programs to a flying start»
Feb 14, 2022 at 18:26 history answered Victor Eijkhout CC BY-SA 4.0