What does ‘low in coupling and high in cohesion’ mean

What I believe is this: Cohesion refers to the degree to which the elements of a module/class belong together, it is suggested that the related code should be close to each other, so we should strive for high cohesion and bind all related code together as close as possible. It has to do with the … Read more

What is an anti-pattern?

Anti-patterns are certain patterns in software development that are considered bad programming practices. As opposed to design patterns which are common approaches to common problems which have been formalized and are generally considered a good development practice, anti-patterns are the opposite and are undesirable. For example, in object-oriented programming, the idea is to separate the software into small … Read more

When should you use a class vs a struct in C++?

The differences between a class and a struct in C++ is: struct members and base classes/structs are public by default. class members and base classes/struts are private by default. Both classes and structs can have a mixture of public, protected and private members, can use inheritance and can have member functions. I would recommend you: … Read more