~/talk

From C# to Python – 10 Things I Learned Along the Way

Talkat JetBrains .NET Days Online 2020 · 2020-05-13..05-14· [python]
slides:none on file

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

  1. 0:00Introduction
  2. 1:06Tip 1 - Set up a sweet dev environment
  3. 5:50Tip 2 - Write readable and maintainable code
  4. 11:54Tip 3 - Testing with pytest
  5. 17:56Tip 4 - Automate the boring bits
  6. 20:09Tip 5 - Use virtual environments for dependencies
  7. 25:13Tip 6 - Parse arguments with click
  8. 27:50Tip 7 - Embrace pythonic Python
  9. 32:06Tip 8 - Keep your secrets
  10. 32:59Tip 9 - Use notebooks for exploration
  11. 37:57Tip 10 - Use a cookie cutter project structure
  12. 43:00Bonus tip - There is a package for that
  13. 47:20Summary
  14. 48:03Questions and Answers
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.