Python Updates: OOP, MongoDB Transactions, & Packaging
Overview of Python Bytes Episode 66
This episode of Python Bytes covers a diverse array of modern Python development topics, ranging from educational resources to significant shifts in ecosystem tools. Hosts Michael Kennedy and Brian Akin discuss how to improve your coding workflow, documentation, and database management.
Key Topics Covered
- Object-Oriented Programming (OOP) in Python: Discussion of a comprehensive Real Python tutorial on Python 3 classes. A key takeaway is the necessity of explicitly calling
super().__init__()when overriding constructors. - Scripted Forms: A unique project that enables developers to sketch interactive GUI applications using simple Markdown syntax, making it an excellent tool for data science visualizations.
- MongoDB Transactions: Major news regarding MongoDB 4.0, which introduces multi-document transactions and ACID compliance, fundamentally changing the trade-offs for developers using document databases.
- Python Packaging: Analysis of the Python Packaging Authority (PyPA) recommended tool,
pipenv. The hosts highlight its utility in managing virtual environments and dependencies effectively. - Writing Principles: Insights from Julia Evans on how to become a more effective technical blogger by focusing on brevity, consistency, and writing for your past self.
Professional Recommendations
"Try not to write anything too long. Be positive. Write for the past you." — Julia Evans
The episode also highlights:
* Error Monitoring: The importance of real-time monitoring tools like Rollbar to catch production issues, such as database connectivity failures.
* Open Source Contribution: Encouragement to participate in the upcoming Pandas Documentation Sprint on March 10th, 2018, an ideal opportunity for developers to contribute to a major project.
* Game Development: The emergence of the Unreal Engine Python plugin, allowing for native Python scripting within the Unreal game engine.