From C# to Python – 10 Things I Learned Along the Way
summary
Ten concrete practices: use PyCharm or VS Code with the Python extension, enforce style with black + flake8 and run them via pre-commit, test with pytest (fixtures, parametrize, mock.patch), parse CLIs with click so main becomes testable, isolate projects with virtualenv/conda + requirements.txt, prefer list comprehensions and type hints, keep secrets in .env, use notebooks only for exploration not production, and start new projects from a cookiecutter data-science template to avoid messy repos.
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:06Tip 1 - Set up a sweet dev environment
- 5:50Tip 2 - Write readable and maintainable code
- 11:54Tip 3 - Testing with pytest
- 17:56Tip 4 - Automate the boring bits
- 20:09Tip 5 - Use virtual environments for dependencies
- 25:13Tip 6 - Parse arguments with click
- 27:50Tip 7 - Embrace pythonic Python
- 32:06Tip 8 - Keep your secrets
- 32:59Tip 9 - Use notebooks for exploration
- 37:57Tip 10 - Use a cookie cutter project structure
- 43:00Bonus tip - There is a package for that
- 47:20Summary
- 48:03Questions and Answers








