π‘ Python radar - May 2023
A personal selection of Python-related news and projects that caught my attention this month (note: leading emojis are mine).
π οΈ SOLID Principles: Improve Object-Oriented Design in Python (realpython.com)
After the GRASP object-oriented programming principles that we covered two months ago, here comes its big brother: the SOLID principles. A good practice is to try to tie your design decisions to one of these principles.
π How to Document Your Code Like a Pro (youtube.com)
A new video from ArjanCodes to enhance your coding documentation practices, including the classic comments and docstrings, but also the use of type annotations (which I personally fully approve of).
πΎ basnijholt/rsync-time-machine.py: Time Machine-style backups using rsync (github.com)
A unique and dependency-free Python script (except for rsync!) for creating and managing incremental backups of your folders to any machine.
π€ ChatGPT: Your Personal Python Coding Mentor (realpython.com)
A tutorial on how to use ChatGPT as a personal mentor to develop your Python skills, with examples of "prompts" to learn the language, help debug a piece of code, assist with refactoring, etc.
π¦ Writing Python like itβs Rust (kobzol.github.io)
An interesting post detailing how to implement in Python some practices and patterns commonly used in Rust.
π Tracing Python (koehntopp.info)
A review of a variety of methods and tools to trace the execution of your functions (displaying the sequence of calls with arguments and return values).
β‘ ipyflow/ipyflow: A reactive Python kernel for Jupyter notebooks (github.com)
A Python kernel that identifies when a notebook is out of sync, for example, because a cell was rerun, and automatically updates the cells impacted by the change.