Welcome to the world's most unnecessarily complex solution for a straightforward task: randomizing names from a users.txt file!
- Uses Singleton Pattern because we believe there should be only one way to fetch names.
- Implements the Factory Pattern because why create an instance of a class the straightforward way when you can complicate it?
- Shuffles the names not once, but 1000 times because... security? We believe in going above and beyond for no apparent reason!
- Make sure you have Python installed.
- Clone this repository.
- Ensure you have a
users.txtfile in the same directory as the script. Each name should be on a new line. - Run the main script using the command:
python randomizer.py
- Singleton Pattern: We've ensured that only one instance of
DatabaseConnectioncan ever exist because who needs more than one connection to read a text file? - Factory Pattern: An over-the-top approach to simply read and shuffle names.
- Decorator: For those who believe that shuffling once is too mainstream, we shuffle the names a whopping 1000 times!
Please don't take this README (or the code) too seriously. This project is intended for humorous purposes only.
graph TD
A(Start)
B[Load users.txt]
C[Singleton DatabaseConnection]
D[RandomizerFactory]
E[Randomizer]
F[Shuffle names 1000 times]
G(End)
A --> B
B --> C
C --> D
D --> E
E --> F
F --> G
Feel free to make this solution even more complicated or add other funny features. Remember, the sky is the limit when over-engineering is concerned!