This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # little script to search for cards in scryfall for commander decks and dump them out in text form | |
| # see https://scryfall.com/docs/api/cards/search | |
| import argparse | |
| import requests | |
| import sys | |
| import time | |
| # Python <= 3.9 hack, need NoneType to parse None values still | |
| if sys.version_info.major == 3 and sys.version_info.minor <= 9: |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.