Many students learn at the university the principles of object-oriented programming, and they are told that object-oriented is one of the crucial crystals of knowledge that they need to possess in order to find a good job in the industry, they graduate from the university thinking that object-oriented is the best paradigm there is and they should apply it everywhere, many of them don’t know that object-oriented isn’t perfect and has its weaknesses, here we are going to review some of them.
Object-oriented programming focuses at modeling the world by objects, objects are models for entities that represent what are…
First, let’s agree that each method of a class can do one or both things:
Let’s see some examples (TypeScript):
Don’t worry about the long class, you can instantly skip to the methods explanation right beneath it.
Let’s look at methods by category:
Command:
You can see…
Lifelong learner…