Simple and straight to the point, thank you sir! OOP is one of my weaknesses.
@casperghst42
2 ай бұрын
Booch wrote a very good book more than 30 years ago: "Object Oriented Design", still worth reading. OOD/OOP is well connected and you should understand what OOD is before you do OOP.
@cbbcbb6803
3 ай бұрын
What are other ways to simplify code. What, exactly, is a name space? Is it just two different folders that contain two different files that have the same name?
@zeocamo
3 ай бұрын
first of all this is just classes, namespaces is scopes that you can import into your current scope Namespaces is borken, and new languages do not come with it any more. the replacement is modules, Why, well because you get a lot stuff into your scope you don't need, with modules you import the stuff you need and no more. classes as show here is not really OOP, as it is a thing to hold data, a "data object" and that is used in FP too. but OOP is bad by design, as any unique features it has is making software a mess, and you end up rewriting it. we(languages designers) are trying to do better, Rust got trait, optional for ex.
Пікірлер: 4