background preloader

Design patterns

Facebook Twitter

Design patterns - Naming Classes - How to avoid calling everything a "<WhatEver>Manager" Model–view–controller. Model–view–controller (MVC) is a software pattern for implementing user interfaces.

Model–view–controller

It divides a given software application into three interconnected parts, so as to separate internal representations of information from the ways that information is presented to or accepted from the user.[1][2] The central component, the model, consists of application data, business rules, logic and functions. A view can be any output representation of information, such as a chart or a diagram. Multiple views of the same information are possible, such as a bar chart for management and a tabular view for accountants. Observer pattern. Related patterns: Publish–subscribe pattern, mediator, singleton.

Observer pattern

Structure[edit] UML class diagram of Observer pattern.