How China Teaches Kids to Code: From Scratch to National AI Camps
A National Bet on Tiny Programmers
In 2017, China's Ministry of Education signaled that artificial intelligence should be introduced into primary and secondary schools. Since then, "coding for kids" has moved from a niche after-school hobby to a mainstream expectation in Chinese cities. Parents who once rushed children to piano and calligraphy now add programming classes to the schedule, convinced that code is the new literacy.
This article maps how China actually teaches children to code โ from block-based play in primary school to the cutthroat National Olympiad in Informatics (NOIP) that can open university doors.
Stage 1: Block Coding and Scratch
The entry point is almost always Scratch, the MIT-developed block language, or Chinese clones like Kitten (็ผ็จ็ซ) and Nemo. In tightly designed, game-like lessons, a 7- or 8-year-old snaps together colored blocks to animate a cat or build a simple quiz. The goal is not syntax but computational thinking: sequencing, loops, conditionals, and debugging.
Many public schools now run coding as a club or elective, while the real volume happens in private training centers. The market for children's programming swelled to tens of billions of yuan, with chains operating in hundreds of cities.
Stage 2: Text-Based Languages
Around ages 10โ12, students transition to Python, prized for readable syntax, and sometimes C++, the language of competitive programming. Python is taught through turtle graphics, small games, and data projects; C++ is introduced specifically for those aiming at the Olympiad track. The leap from blocks to text is where many drop out โ and where the serious pipeline begins.
Stage 3: The Olympiad Track (NOIP and NOI)
For the truly dedicated, the path runs through the National Olympiad in Informatics (NOI) system:
- CSP-J/S (Certified Software Professional, Junior/Senior) โ the gateway exams, usually from grade 5โ6 upward.
- NOIP (National Olympiad in Informatics in Provinces) โ the provincial selection.
- NOI โ the national final, whose top scorers earn university admission advantages, including placement at elite institutions through talent programs.
- IOI โ the International Olympiad in Informatics, where Chinese teams consistently medal.
This track rewards algorithm design and data structures over app-building, and it is intensely competitive โ a small fraction of participants reach the national level, but the rewards (prestige, school admission, scholarships) are large.
Stage 4: The AI Camp Wave
The newest layer is AI education. Spurred by national policy and the generative-AI boom, provinces have rolled out AI curriculum guidelines, and camps now teach children to use โ and lightly build with โ large models. Some programs let students fine-tune small models or build simple agents, framed as "AI literacy for the next generation." Critics warn of hype and superficial learning, but the momentum is clear.
The Parental Logic
Chinese parents operate on a simple fear: that a child who cannot code will be left behind in an automated economy. Coding certificates and Olympiad medals also strengthen school and university applications, especially under the "special talent" (็น้ฟ็) and strong-foundation (ๅผบๅบ่ฎกๅ) channels. The result is a febrile after-school market where monthly fees for quality coding classes rival those of elite sports training.
Concerns and Pushback
Two tensions shape the field. First, the "double reduction" policy (2021) curbed tutoring in core academic subjects but left STEM and arts in a gray zone; coding firms repositioned as "quality education" to stay compliant. Second, educators worry about age appropriateness โ pushing abstract programming onto very young children can breed burnout. A balanced view is emerging: coding as one of several creative literacies, not a universal mandate.
What Foreign Observers Can Learn
China's scale and speed in child coding education is a natural experiment in computational literacy. Whether it produces a generation of builders or merely a pile of certificates, it signals a cultural consensus that programming belongs in childhood, much as reading and arithmetic do. For families abroad, the takeaway is modest: early, playful exposure to logic and making beats pressure and cramming.