Archive for category Design Patterns

The Single Responsibility Principle

The single responsibility principle states that every object should have a single responsibility and that responsibility should be entirely encapsulated by the class. You should think of a responsibility as axis of change. The greater the responsibilities of a class the higher the risk of introducing errors. This is because a class with multiple responsibilities  […]

Leave a comment

Design Patterns

A big part of teaching myself how to program is to try and learn how to prevent common problems. After my first real project i ran into a lot of problems that was due to my limited knowledge that ended up making it very difficult to extend the app. This got so bad that i […]

Leave a comment