Posts
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.

PPT Making Guide: Course Notes on the Presentation Part
· β˜• 2 min read
1. Overview Course prerequisite: the logical structure and content of the PowerPoint have already been worked out and written. The course enhances the expressiveness of PowerPoint mainly through the following six parts: Color Text Shapes Charts Slide Master Animation 2. Color 2.1 Understanding Color Hue Chromatic colors, such as purple,

How to Build a PyPI Server with devpi
· β˜• 5 min read
When you install Python packages with pip, it looks up the corresponding package on the https://pypi.python.org/simple/ index by default, then downloads and installs it. But in an intranet environment, or when you need to publish some private packages to designated users, you have to build your own PyPI Server. This post mainly records the process of building a PyPI Server index with the devpi tool, along with some commonly used commands.

Django Model and E-R Diagram
· β˜• 6 min read
As requirements are gradually confirmed, the system’s DB model is gradually confirmed as well. Sometimes you use a tool like MySQL Workbench to draw an E-R diagram and then generate MySQL database tables, and at that point you need to reverse-generate Django Models; other times you write the Django Models directly, but then you need to look at the E-R diagram.

Etcd, Confd, and Nginx Service Discovery
· β˜• 3 min read
This post mainly explains why the service discovery feature is needed and compares several service discovery tools. It also puts service discovery with Etcd, Confd, and Nginx into practice on CentOS. 1. Service Registration and Discovery 1.1 Why Service Registration and Discovery Are Needed With the rise of microservices, a