Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 662b780

Browse files
committed
add warning in README
1 parent 7675aa8 commit 662b780

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
# design-patterns
22

3-
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Build Status](https://travis-ci.org/jackdbd/design-patterns.svg?branch=master)](https://travis-ci.org/jackdbd/design-patterns) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
3+
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
44

55
Some of the most common design patterns implemented in Python.
66

7+
> :warning: **READ THIS** :warning:
8+
>
9+
> *Design patterns are spoonfeed material for brainless programmers incapable of independent thought, who will be resolved to producing code as mediocre as the design patterns they use to create it*.
10+
>
11+
> [Christer Ericson](https://realtimecollisiondetection.net/blog/?p=81), VP of Technology at Activision Central Tech.
12+
>
13+
> When I started programming, I thought that a serious programmer should have to know all major design patterns described in the book [Design Patterns: Elements of Reusable Object-Oriented Software](https://en.wikipedia.org/wiki/Design_Patterns), and religiously write code that would follow them.
14+
>
15+
> Over time, I realized that only a few of these patterns are actually good, most of them are bad, some others are completely unnecessary, especially in a dynamic language like Python. In fact, I don't recall having to use most of them, except for maybe Decorator, Observer and Strategy.
16+
>
17+
> Before reading the code in this repository, I suggest you have a look at these resources to understand whether a particular design pattern suits your use-case or not:
18+
> - [Design Patterns and Anti-Patterns, Love and Hate](https://www.yegor256.com/2016/02/03/design-patterns-and-anti-patterns.html) — Yegor Bugayenko
19+
> - [Design Patterns in Dynamic Languages](https://norvig.com/design-patterns/) — Peter Norvig
20+
721
## Installation
822

923
This project uses [pyenv](https://github.com/pyenv/pyenv) and [pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv) to manage the Python virtual environment, and [poetry](https://poetry.eustace.io/) to manage the project dependencies.

0 commit comments

Comments
 (0)