Work towards #56: Add permalink to every pattern

This makes cleaner URLs thanks to jekyll
This commit is contained in:
Markus
2015-08-15 18:03:05 +02:00
parent fbb12b53ba
commit fdb9be1e76
57 changed files with 113 additions and 80 deletions

View File

@ -2,6 +2,7 @@
layout: pattern
title: State
folder: state
permalink: /patterns/state/
categories: pattern_cat
tags: pattern_tag
---
@ -14,4 +15,4 @@ changes. The object will appear to change its class.
**Applicability:** Use the State pattern in either of the following cases
* an object's behavior depends on its state, and it must change its behavior at run-time depending on that state
* operations have large, multipart conditional statements that depend on the object's state. This state is usually represented by one or more enumerated constants. Often, several operations will contain this same conditional structure. The State pattern puts each branch of the conditional in a separate class. This lets you treat the object's state as an object in its own right that can vary independently from other objects.
* operations have large, multipart conditional statements that depend on the object's state. This state is usually represented by one or more enumerated constants. Often, several operations will contain this same conditional structure. The State pattern puts each branch of the conditional in a separate class. This lets you treat the object's state as an object in its own right that can vary independently from other objects.