10. Single responsibility principle

For me it is the one of the most important rules about developing software. It comes from SOLID principles by Robert C. Martin. In short it states that every module, class or function in a computer program should have responsibility over a single part of that program’s functionality What are important consequences of this? It helps to keep particular logic in one place.… Continue reading 10. Single responsibility principle

57. Inheritance vs composing

Learn when to use inheritance and composition. Inheritance may sound like great implementation of object oriented programming, something that saves a lot of code. But it has risks. If used wrong it easily leads to tight coupling – hard to maintain code. Deep inheritance trees may result in execution of unnecessary code and lose of… Continue reading 57. Inheritance vs composing

Categorized as Design