Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtortorelli/head-first-design-patterns-python
The main examples from the Head First Design Patterns book translated into Python
https://github.com/jtortorelli/head-first-design-patterns-python
Last synced: 3 months ago
JSON representation
The main examples from the Head First Design Patterns book translated into Python
- Host: GitHub
- URL: https://github.com/jtortorelli/head-first-design-patterns-python
- Owner: jtortorelli
- Created: 2018-02-23T20:54:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T03:39:21.000Z (almost 7 years ago)
- Last Synced: 2024-08-05T08:09:20.674Z (7 months ago)
- Language: Python
- Size: 65.4 KB
- Stars: 51
- Watchers: 5
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```