https://github.com/sobolevn/python-code-disasters
This code is so bad, that it is worth sharing.
https://github.com/sobolevn/python-code-disasters
bad-practices disaster example python
Last synced: 3 months ago
JSON representation
This code is so bad, that it is worth sharing.
- Host: GitHub
- URL: https://github.com/sobolevn/python-code-disasters
- Owner: sobolevn
- Created: 2015-08-18T11:40:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T16:48:13.000Z (almost 2 years ago)
- Last Synced: 2025-04-02T19:07:00.808Z (10 months ago)
- Topics: bad-practices, disaster, example, python
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 158
- Watchers: 11
- Forks: 59
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# python-code-disasters
## What is it all about?
I am, due to my work, seeing a lot of code written by other developers. Sometimes this code is so bad, that it is worth showing to the outer world.
## [Privacy](#privacy)
Privacy is very important. There are two things basically:
1. Refactor your code to remove anything, that might violate any security requirements, corporate rules or license agreements.
2. It is not a goal of this project to insult or offend anyone, so, please, remove any brand-names, user marks, `__author__` variables and so on.
## Save yourself!
Do you want to save yourself and your project from a `python` code disaster?
Then use [`wemake-python-styleguide`](https://github.com/wemake-services/wemake-python-styleguide) which is the strictest `python` linter in existance.
With this tool all your code will be awesome!
## Contributing
Feel free to contribute. Before contributing, please, double check the [Privacy](#privacy) section.
Refactor your code to remove as much as you can to leave just the most valuable parts. I think that submitting a broken code is not an issue for this project. Moreover, formatting the code is also not required. Sometimes it is even better to leave it's formation untouched.
It is generally a good practice to read through your old files and contribute your own code.
It is still not clear to me, how to structure this project.
### Keywords
Pythod bad code examples, Python antipatterns