Best Practices
How to Use Docker to Develop Personal Projects
· β˜• 2 min read
1. About Personal Projects Why emphasize that they are personal projects? Commercial projects have lengthy processes around code hosting, development, operations, and deployment. For an individual developer, such processes are too expensive and work against rapid project iteration. A personal project might be a Demo for learning. Building a Demo

How to Do Code Review Better
· β˜• 2 min read
1. How to Do Code Review Better Requirement Items Requirements for the committer Small granularity Atomicity With comments Tool checks Requirements for the reviewer First conventions Second logic & performance Third design Requirements for the team Reviewing the old to learn the new 2. Define a Code Review Checklist Requirement Items Naming Variable names

Django Development Conventions (Part 1)
· β˜• 3 min read
This article mainly lays out a few things to watch out for during Django development. A consistent coding style and sound design principles help a project’s development and maintenance, and are worth developers studying and discussing continuously. 1. Encoding Declaration When the Python interpreter executes code, it needs to be

Error Code Design and Unified Exception Handling in Django
· β˜• 6 min read
I currently use Django for SaaS development, and I develop and maintain several SaaS applications at the same time. Many SaaS applications have agreed-upon error codes, some used to handle login state, others to mark business logic status. For a feature that is so strongly shared across projects, it is

Automation Operations with Python
· β˜• 1 min read
Subtitle: Technique and Best Practices English title: Automation Operations With Python Technique And Best Practices Author: Liu Tiansi Publisher: China Machine Press Published: 2014-11-1 ISBN: 9787111483069 Notes: Drawing on his own operations experience, the author describes in detail the use and configuration of a wide range of Python-based tools. It is a reference book well suited to Python operations personnel.