Conventions
Chaos Engineering and Putting It into Practice
· β˜• 9 min read
Two months ago, I gave a talk to a business team about chaos engineering in practice. This post mainly organizes the content of that talk. Click to view the presentation 1. The Origin of Chaos 1.1 The Birth of the Discipline of Chaos Before discussing chaos, let us first think about the relationship between chaos, chaos engineering, and our production services.

Notes on The Art of Readable Code
· β˜• 1 min read
1. About Names Choose professional words Avoid overly generic names Use concrete names instead of abstract ones Use prefixes or suffixes to attach more information to a name Decide how long a name should be Use the formatting of a name to express meaning 2. Packing Information into Names Generally speaking, adding words like is, has, can, or should makes a boolean value more explicit.

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

Python's Class Function Methods
· β˜• 3 min read
1. Function Methods A function is an organized, reusable snippet of code used to implement a single or related piece of functionality. Functions improve an application’s modularity and the reuse rate of code. Python provides many built-in functions, such as print() and str(). At the same time, Python also allows