YouTube Playlist for this repo
Welcome to the Cursed Code repository, a collection of cursed Ruby code snippets submitted by the global Ruby community.
The code examples here are submitted by the global Ruby community, with the aim of them being refactored as educational guides.
All code examples are organised into their own directories. Each directory contains:
- A
before
directory with the original, cursed code. - An
after
directory with the refactored version.
- Fork this repository.
- Add your own directory with a
before
subdirectory containing your cursed code. - Create a Pull Request (PR) to propose your submission.
- You must have permission to share the code publicly, and consent to your code being used and refactored in various media.
- The code must be written in Ruby.
- Limit your example to a maximum of 5 files and 500 lines of code.
- The code must include tests that can be easily run (preferably with
rake
) - Ensure the code includes a
Gemfile
for dependency management.
Browse the pull requests and vote for the suggestions you'd like to see refactored by giving them a 👍 thumbs-up emoji.
Happy coding! 💀👾