This repo contains code snippets and Powerpoint for the 7 Jun 2023 Buffalo Data Science Meetup on Bad Data Science Coding Practices. Presented by Vi Ly.
Code smells and examples used for demonstration purposes in Bad Data Science Coding Practices.pdf
dry_violations/dry_bad.py: Examples of copy / paste code snippets that violate DRY (Don't Repeat Yourself) principledry_good.py: How to refactor code smells fromdry_bad.py
self_documenting_code/bad.py: Example of poorly-written non-documenting codebetter.py: Refactor of code frombad.pyso that it is self-documenting.best.py: An even cleaner refactor ofbetter.py
version_control_by_naming/: Toy code to show how NOT to version controlconfounding_similar_names.pycrowded_code.pyinconsistent_naming_convention.pymagic_number.pyverbose_conditionals.py
Various Python tidbits that have been helpful.