Programming fundamentals
A Guide to Solid Principles Acronym of SOLID SOLID is a popular set of five design principles that are used in object-oriented software development. These principles are commonly used by software engineers which were developed by Robert C. Martin (also known as Uncle Bob). Single-Responsibility Principle This principle states that a class should have one sole purpose furthermore, there should never be more than one reason for a class to change. Goal This principle aims to separate behaviours so that if bugs arise as a result of change, it won't affect other unrelated behaviours in the program. Benefits Testing : A class with one responsibility will have far fewer test cases which results in very less efforts in testing. Lower coupling: Less functionality in a single class will have fewer dependencies. Hence, it will lower the coupling. Better Organization: Smaller, well-organized classes are easier to be searched by a first-time code reader than bigge...