About:

Piglei is a Shenzhen-based programmer passionate about Python, gaming, and reading.

Website:

Specializations:

Interests:

Python Django Open source software Video games Reading

Incoming Links:

Outgoing Links:

Subscribe to RSS:
The article discusses the design philosophy of 'thin client, fat server' in software development, particularly in the context of Kubernetes and its 'kubectl apply' command. It explains how the distribution of business logic affect...
本文探讨了 Python 中的 OrderedDict 类型及其内部实现,解释了为什么它能够保持键的顺序。自 Python 3.7 版本起,内置字典已保持插入顺序,但 OrderedDict 仍然存在于标准库中,主要是为了向后兼容和提供额外特性。文章详细介绍了 OrderedDict 的数据结构,包括双向链表和索引字典的使用,以及如何通过这些结构实现高效的键值对操作。
The article discusses various parameter passing patterns in Go programming language, focusing on ordinary parameter passing, parameter structs, optional parameters, and functional options. It highlights the advantages and disadvan...
AI 编程作为一种新型框架,虽然简化了编码,但也带来了抽象泄露和控制权丧失的问题,需转变思维以降低认知成本。
The article discusses the challenges of maintaining a clean architecture in large Python projects, particularly regarding the dependencies between modules. It highlights issues such as high understanding costs for newcomers, reduc...
The article compares programming to writing, highlighting their similarities and differences. It discusses how both require precision and elegance in structure and expression. The author suggests that programming can learn from wr...
本文讨论了服务端软件配置文件设计的重要性,并提供了四条建议以优化用户体验。建议包括:1) 软件应尽量在无需配置的情况下可用,2) 预设合理的默认值以减少用户配置负担,3) 避免使用固定的默认安全配置,4) 优先使用简单的描述性文本格式而非源代码作为配置文件。文章强调用户希望快速使用软件,而不是花时间进行复杂配置。
This blog post is part of a series where the author, a programmer, shares a curated list of 100 technical articles that have inspired him. The third part of the series includes articles 41 to 50, covering topics such as software e...
This blog post introduces a curated list of 100 technical articles favored by the author, who is a programmer. The first part of the list includes 20 articles covering various topics such as software engineering, backend developme...
The blog post discusses the importance of code review in software development, highlighting three often-overlooked aspects: naming conventions, guiding comments, and communication styles. It emphasizes the need for programmers to ...
The blog post discusses the implementation of a 'Rock, Paper, Scissors' game in Python, highlighting the nuances of code readability and the dual meanings of 'meeting requirements.' It contrasts an initial code implementation with...
The author shares their experience of using ChatGPT to write a Python program, reflecting on how AI tools like ChatGPT may change the enjoyment derived from programming. They argue that while ChatGPT can enhance efficiency by hand...
This blog post introduces the concepts of statements and expressions in Python, using a simple 'Hello World' program as a starting point. It explains the difference between assignment statements and expressions, particularly focus...
The author shares the story behind their book 'Python Craftsman: Cases, Skills, and Engineering Practices,' reflecting on their 13 years of experience in Python programming. They describe programming as a craft and emphasize the i...
The author, a Python programmer with over a decade of experience, shares insights on the journey of writing a book titled 'Python Craftsman: Cases, Techniques, and Engineering Practices.' The book aims to help readers write clear ...
The author reflects on their 14 years of experience in software development, contrasting their initial perceptions as a student with the realities of the profession. They discuss the challenges of writing good code, the importance...
This blog post is part of a series titled 'Programmer Reading List: 100 Technical Articles I Like,' where the author shares a curated list of 20 technical articles (21-40) that have inspired or educated them. The articles cover va...
The text presents a series of anecdotes between a master programmer and an apprentice, highlighting key lessons in software development. The master emphasizes the importance of code readability, the necessity of effective commenti...
The author reflects on the challenges of originality in technical writing, particularly in programming. They discuss the use of the textwrap.dedent function in Python for handling multiline strings and share personal experiences o...
The article discusses the importance of embracing tedious tasks in both magic and programming. It uses the example of a card trick that requires extensive preparation to illustrate how success often comes from doing the unglamorou...
The author reflects on their blogging journey in 2024, noting a low output of new articles but highlighting the success of four English articles published in a new section of their blog. These articles received significant attenti...
The author reflects on their experience as a backend developer at a startup company that created the travel app '面包旅行' (Breadtrip). They recount the joy of coding and witnessing the app's success, including its launches and accola...