18,565 stars contributed to a self-study textbook: Li Xiao Lai created a Python course titled "A Guide to Self-Study"

18,565 stars contributed to a self-study textbook: Li Xiao Lai created a Python course titled "A Guide to Self-Study"

2 weeks ago
duguying
16 views
Source: GitHub

Li Xiao Lai's book, "Self-Learning is a Skill" (published in 2019), achieved over 18,565 stars and re-entered the trending list. The book combines introductory Python programming with guidance on how to learn effectively within a single, executable Jupyter Notebook.

Related tags

#GitHub#Trending#自学#Python

Today’s trending list was almost entirely dominated by tools, but one older book from 2019 – Li Xiao Lai’s open-source textbook “Self-Teaching is a Skill” – unexpectedly reappeared with 18,565 stars and a daily increase of 148 stars.

The introduction is blunt: “Those without self-learning ability have no future.” The README starts with the English phrase “One has no future if one couldn’t teach themself,” followed by the Chinese translation, and then a Python pseudocode snippet:

def teach_yourself(anything):
    while not create():
        learn()
        practice()
    return teach_yourself(another)

teach_yourself(coding)

This code essentially encapsulates the entire book’s methodology: keep learning and practicing until you can produce something; then, set a new goal and start again.

Combining “How to Learn” and “What to Learn” into One Document

One of the most unique aspects of this book is its format – it’s actually a collection of Jupyter Notebooks. Each chapter is an interactive .ipynb file that you can open and run, rather than a static, pre-formatted article. You can directly execute Python syntax on the same page as you read it. The author recommends installing JupyterLab locally first for a better experience; in March 23, 2019, he also provided a Markdown version for easier reading.

The book is structured into three parts:

Part 1: Explaining Why. This part explains why self-learning ability is essential, why programming should be approached as a form of self-learning, how to acquire new skills solely through reading, and what preparations to make before starting. It also addresses a practical question: how to effectively read complex concepts (which are explained in later chapters) when confronted with “early references.”

Part 2: Explaining How to Practice. This part focuses on the mindset of self-learning: being persistent and patient, and engaging in deliberate practice. It then introduces Python through functions, explaining why starting with functions rather than variables is beneficial, followed by parameters, variable-length arguments, lambdas (pseudonyms and anonymity), recursion, docstrings, modules, TDD, and __main__. An intermediate chapter focuses on “deliberate practice.”

Part 3: Going Deeper. This part covers more advanced topics, including classes (object-oriented programming and Python’s implementation), decorators/iterators/generators, regular expressions, BNF and EBNF, problem decomposition, the illusion of immediate needs (“The Realm of Self-Teaching”), social interaction for self-learners, “This is the Golden Age for Self-Learners,” and how to avoid distractions.

The three appendices at the end are all about setting up the environment: installing and configuring VS Code, a brief introduction to Git, and installing and configuring JupyterLab. This clearly indicates that the author’s primary concern is establishing the right learning environment – not just understanding concepts, but also having the necessary tools.

Even “How to Contribute” Is Treated as an Exercise

Another detail that highlights the book’s approach is how it addresses contributors. If you want to help proofread, you must first read 02.proof-of-work.ipynb (how can you prove that you have actually read the book?). This chapter teaches you how to use Pull Requests to contribute.

In other words, submitting a qualified contribution is itself designed as part of the learning process – not just “welcome stars,” but rather “please first demonstrate that you can correct one specific issue correctly.”

The license is CC-BY-NC-ND 3.0 (Attribution, Non-Commercial, No Derivative Works), which means it can be freely read and distributed, but cannot be modified and sold as a derivative work.

Why It’s Back Today

When an older textbook suddenly reappears on trending lists, it’s usually not because the content has changed, but because the readers have changed. Several projects currently popular on the list are now using tools to automate tasks like writing code, writing documentation, and managing projects. This frees up the individual to focus on core skills – not just memorizing syntax, but also knowing what to learn, how to verify their understanding, and when to stop and start again.

This book focuses precisely on this aspect. It doesn’t promise fluency in 21 days or offer shortcuts; it provides a simple loop: learn, practice, and create something tangible, then set a new goal. As tools become more automated, this cycle becomes an essential infrastructure.

Repository URL: https://github.com/xiaolai/the-craft-of-selfteaching

More News

Want to see more quality content?

Browse all news