Retrieved from ""

The State Pattern (2010)


2010-04-27, Dept. of Computer Science, University of Hamburg

The State Pattern (2010)

This talk was held in the "Concepts of object-oriented programming languages" course by Axel Schmolitzky and Christian Späh. It was a reproduction of a teachlet that was first designed and held by Janina Nemec and me the year before.

I guided the participants through solving a software design problem using the "state" design pattern. This was, in teachlet tradition, accomplished by offering them a clear-cut problem and discussing several possible solutions, before talking about the state pattern and finally live implementing the solution together.

I tried to shorten some parts slightly in comparison to the first run in order to not take as much time.



Please DO NOT enter anything into the next three fields, they are used as bait for automated entries. If any of the following fields is not left empty, the comment will not be saved!

End of protection - from here on, you can safely enter data.

Comments may be formatted using Markdown.

emphasis *emphasis* or _emphasis_
strong emphasis **strong emphasis** or __strong emphasis__
new paragraph insert an empty line


> quote
  • unordered
  • list
* unordered
* list
  1. ordered
  2. list
1. ordered
2. list
weblink [weblink](
Note: You can only post weblinks if you are authenticated via OpenID.
More and longer examples are available at Daring Fireball.
No comments yet.