Skip to content

The main examples from the Head First Design Patterns book translated into Python

Notifications You must be signed in to change notification settings

jtortorelli/head-first-design-patterns-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Design Patterns

Collection of the code examples from Head First Design Patterns (2004), translated to different languages.

  • Chapter 1 - Strategy Pattern
    • SimUDuck
    • Adventure Game
  • Chapter 2 - Observer Pattern
    • Weather Station
  • Chapter 3 - Decorator Pattern
  • Chapter 4 - Factory Pattern
  • Chapter 5 - Singleton Pattern
  • Chapter 6 - Command Pattern
  • Chapter 7 - Adapter and Façade Patterns
  • Chapter 8 - Template Pattern
  • Chapter 9 - Iterator and Composite Patterns
  • Chapter 10 - State Pattern
  • Chapter 11 - Proxy Pattern
  • Chapter 12 - Compound Patterns
  • Chapter 13
  • Appendix - Leftover Patterns

Python

Kotlin

Running the test applications

Each directory under the chapter directory represents a separate Gradle project. An executable .jar file can be built using:

// macOS
./gradlew clean build

// Windows
gradle clean build

The application can then be run using:

// macOS
java -jar ./build/libs/[application-name].jar

// Windows
java -jar .\build\libs\[application-name].jar

About

The main examples from the Head First Design Patterns book translated into Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published