Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mischapanch/unpatterns
Collection of design patterns that came to me in feverish nights - so bad they are good!
https://github.com/mischapanch/unpatterns
Last synced: 2 months ago
JSON representation
Collection of design patterns that came to me in feverish nights - so bad they are good!
- Host: GitHub
- URL: https://github.com/mischapanch/unpatterns
- Owner: MischaPanch
- Created: 2024-05-02T21:51:51.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-09T21:50:22.000Z (8 months ago)
- Last Synced: 2024-05-09T22:25:26.179Z (8 months ago)
- Language: Jupyter Notebook
- Size: 166 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unpatterns
Too hacky to be a pattern, not bad enough to be an antipattern - Unpatterns!
The things collected in this repository are ungodly mostrosities that I dreamt up in sleepless nights,
and considered them to be elegant but also a bit dangerous and very unusual.I don't recommend using them in production code! They will raise eyebrows. Your colleagues might shun you.
Your partner could leave you, your dog might run away, and your plants will dry out!You have been warned!
1. [Protocol Decorator](protocol_decorator.md)
One boring and two crazy ways to build a decorator of a class.
2. [Salvaging python's object](object_with_getstate.ipynb)
Highlighting important problems of persisting objects in Python,
and hacking through the builtins to solve them. Worth a read if you
want to know more (and care) about backwards compatibility for saved objects.
3. Allowing operators to be applied to functions: TBA