@yiyirats: Not sure where to start when teaching yourself computer science? Bookmark this CS learning map. CS Self-Study Guide was put together by a few Peking University students, stringing the CS curriculum along a learning path: starting from basic programming and going all the way through operating systems, networks, and compilers, and further on to graphics and generative models. One stage at a time…
Summary
The CS Self-Study Guide (csdiy.wiki), maintained by Peking University students, has released v1.2.0, adding a learning track for deep generative models. It stitches together the CS curriculum into a complete self-study path—from introductory programming through operating systems, networks, compilers, and graphics—and compiles courses, assignments, open-source resources, and reading lists.
View Cached Full Text
Cached at: 11/23/26, 08:59 AM
Not sure where to start learning CS on your own? Save this CS learning map.
The CS Self-Study Guide was put together by a group of Peking University students. It threads computer science courses into a single learning path: starting from a little programming fundamentals, all the way through operating systems, networking, and compilers, and further on to graphics and generative models.
1️⃣ A stage-by-stage roadmap for your learning journey 2️⃣ Courses, assignments, and open-source resources gathered in one place 3️⃣ Tool checklists, book lists, and study tips included as well
It’s not just a pile of links — it also helps you figure out which courses to take and where to find materials, saving you a few wrong turns.
To be clear: many of the core course materials are in English, there are no fixed deadlines, your pacing is entirely up to you, and whether you can push through is on you.
🔗 https://csdiy.wiki
CS Self-Study Guide
Source: https://csdiy.wiki/ Image title
Preface
🎉🎉Release v1.2.0 (https://github.com/PKUFlyingPig/cs-self-learning/releases/tag/v1.2.0): Added a learning roadmap for deep generative models (https://csdiy.wiki/%E6%B7%B1%E5%BA%A6%E7%94%9F%E6%88%90%E6%A8%A1%E5%9E%8B/roadmap/)🎉🎉
This is a self-study guide for computer science, and also a keepsake of my three years of self-directed learning throughout university.
It is also a gift to the junior students in PKU’s School of Electronic, Information and Engineering. If this book helps you in even the slightest way on your academic journey, it would be a tremendous encouragement and comfort to me.
The book currently includes the following sections (if you have other suggestions, or would like to become a contributor, feel free to email [email protected] or open an issue):
- How to use this book: Since it covers a vast amount of resources, I’ve written tailored usage guides for different audiences based on their available time and learning goals.
- A reference CS learning plan: A comprehensive, systematic self-study plan for CS that I put together based on my own experience.
- Essential tools: Introductions to productivity tools for CS students, such as IDEs, VPNs, StackOverflow, Git, GitHub, Vim, LaTeX, GNU Make, Docker, workflows, and more.
- Classic book recommendations: Frustrated by opaque, impenetrable textbooks? Don’t blame yourself — the textbook might just be badly written. Anyone who has read CSAPP will attest to the importance of a good book. I’ll list must-read books and resource links across every area of computer science.
- A roundup of high-quality CS courses from China and abroad: I will categorize and compile the high-quality domestic and international CS courses I’ve taken and those contributed by the open-source community, introduce their content and features, and offer corresponding self-study advice. Most courses will have a dedicated repository maintaining related resources and assignment implementations for everyone to study and reference.
Where the Dream Began — CS61A
When I entered university, I was a complete novice at computers. I installed tens of gigabytes of Visual Studio and fought with online judges day after day. Thanks to my high school math background, I did reasonably well in math courses, but in my major courses, I could only look up in awe at the competition veterans. When it came to programming, all I could do was open that clunky IDE, create a command-line project whose purpose I didn’t even understand, and then type cin, cout, and for loops — followed by an endless cycle of CE, RE, and WA. Back then I was in a miserable state: desperately wanting to learn well but not knowing how, listening carefully in class but still unable to solve problems afterward, grinding through assignments purely by burning time. To this day, I still have the source code of my first-semester Introduction to Computing final project on my computer — a single 1200-line C++ file with no headers, no classes, no encapsulation, no unit tests, no Makefile, and no Git. Its only merit was that it actually ran; its demerits were everything else. I once wondered whether I was cut out for computer science, because every childhood image of being a geek had been completely shattered by my first-semester experience.
Everything changed during the winter break of my first year. On a whim, I decided to learn Python. By chance, I saw someone on Zhihu recommend CS61A, an introductory first-year course at UC Berkeley that taught Python. I will never forget that day — the moment I opened the CS61A (https://cs61a.org/) course website was like Columbus discovering a new world; the door to an entirely new realm swung open before me.
I finished the entire course in three weeks flat. It was the first time I felt that CS could be so fulfilling and fun, that such extraordinary courses existed in this world.
To avoid any suspicion of blindly admiring foreign things, let me share my experience of self-studying CS61A purely from a student’s perspective:
- An independently built course website: A single website that integrates all course resources — a well-organized course schedule, links to all slides, homework and discussion materials, detailed and transparent grading policies, and past exams with answer keys. Setting aesthetics aside, such a website is convenient for students and makes resources fair and transparent.
- A textbook written by the course professor: The professor who created CS61A adapted MIT’s classic textbook Structure and Interpretation of Computer Programs (SICP) into Python (the original was based on Scheme), ensuring consistency between lectures and the textbook while adding more detail — a truly generous effort. The whole book is open source (https://www.composingprograms.com/) and can be read directly online.
- Assignments rich enough to make your head spin: 14 labs reinforcing in-class concepts, 10 homework sets, and 4 projects each with over a thousand lines of code. Unlike the online judges and Word-document assignments you might be used to, every assignment comes with a complete code scaffold and beginner-friendly instructions. Each project has a detailed handout document and a fully automated grading script. CS61A even developed its own automated submission and grading system (https://okpy.org/) (apparently even published a paper about it). Of course, some might say, “If most of a project’s thousands of lines are written by the TAs, what can you actually learn?” That’s not quite right. As a beginner who had just started touching computers and could barely install Python, such complete code scaffolds let you focus on consolidating the core concepts learned in class, give you the satisfying feeling of “I built a little game after just one month of learning!”, and give you the opportunity to read and learn from others’ high-quality code for your own use. I think at the lower-year level, this kind of code scaffolding is purely beneficial. It’s the professors and TAs who bear the burden, because developing such assignments requires a huge time investment and years of iterative refinement.
- Weekly Discussion sessions: TAs walk through difficult concepts and sample exam questions. All exercises are written in LaTeX — quite professional — and come with detailed solutions, allowing students to identify gaps and reinforce key concepts in a timely manner.
With courses like these, you don’t need any computer science background at all — you just need effort, diligence, and time. That feeling of having energy with nowhere to put it, of putting in countless hours with nothing to show for it, all disappeared overnight. This was exactly what I needed; I fell in love with self-study from then on.
Imagine if someone could take difficult concepts, chew them up and present them to you in vivid, plain language, and back it all up with so many impressive-sounding, diverse projects to reinforce your theoretical knowledge. You’d feel they were doing everything in their power to make sure you truly mastered the course, and that not learning it well would be an insult to the people who built these courses.
If you think I’m exaggerating, why not start with CS61A (https://cs61a.org/) — it’s where my dream began.
Why I Wrote This Book
When I served as a teaching assistant for Computer Systems: A Programmer’s Perspective (CSAPP) in the fall of 2020, I had already been self-studying for over a year. In that time, I thoroughly enjoyed this mode of learning, and to share that joy, I created a repository of CS self-study resources (https://github.com/PKUFlyingPig/Self-learning-Computer-Science) for the students in my seminar. It was purely a whim at the time — I wouldn’t dare openly encourage people to skip classes and self-study.
But as I maintained the repository for another year, its contents became quite rich, covering the vast majority of courses in the CS, Intelligence, and Software Engineering departments. I also set up a dedicated GitHub repository for each course, consolidating the self-study resources and assignment implementations I used.
Then, at the start of my senior year, when I was piecing together credits to graduate, I opened my curriculum plan and realized it had become a subset of my self-study repository — only two and a half years after I had begun self-studying. A bold idea surfaced in my mind: perhaps I could create a self-study-based curriculum plan, documenting the pitfalls I encountered and the paths I walked during these three years of self-directed learning, in order to contribute my modest share to the junior students who would come after me.
If everyone could build the entire foundation of CS in under three years, develop a solid grounding in mathematics and coding, go through the trials of dozens of thousand-line-code projects, master at least C/C++/Java/JS/Python/Go/Rust and other mainstream languages, and gain exposure to algorithms, circuits, computer architecture, networking, operating systems, compilers, artificial intelligence, machine learning, computer vision, natural language processing, reinforcement learning, cryptography, information theory, game theory, numerical analysis, statistics, distributed systems, databases, graphics, web development, cloud services, high-performance computing, and more — then I believe you’ll have the confidence and底气 to choose a direction that interests you, whether in industry or research, and you’ll be highly competitive either way.
Because I firmly believe: since you’ve stuck with me through this entire rant, you clearly have the ability to learn CS well — you’ve just never had a great teacher to deliver a great course. And I will do my best to select such courses for you based on my three years of experience.
The Advantages of Self-Study
For me, the biggest advantage of self-study is being able to adjust my learning pace entirely to my own schedule. For difficult concepts, I can rewatch videos repeatedly, Google related content online, and post questions on StackOverflow until I fully understand them. For material I grasp more quickly, I can breeze through at 2x or even 3x speed.
Another major advantage of self-study is the ability to draw from many sources. For CS’s four core courses — architecture, networking, operating systems, and compilers — I’ve essentially taken courses from different universities for each one. Different textbooks, different emphases on knowledge points, and different projects will greatly broaden your horizons and help you promptly correct misunderstandings.
A third advantage is time freedom. University already offers relatively free time outside of class, and without having to attend lectures, you can freely arrange your self-study time and pace. During my sophomore year, I spent over half a year at home due to the pandemic, and after returning to campus, I barely attended any in-person classes — it had no impact on my GPA whatsoever.
The Disadvantages of Self-Study
Of course, as a devoted advocate of CS self-studyism, I must acknowledge that it has its downsides as well.
First is the inconvenience of communication. I’m actually someone who loves asking questions — I like to chase down every point I haven’t understood. But when you’re staring at a screen and the professor mentions a concept you don’t understand, you can’t travel through the network cable to ask them for clarification. I’ve tried to mitigate this through independent thinking and effective use of Google, but having a few kindred spirits to study alongside would be wonderful. For setting up study groups, you can refer to the tutorial in the repository’s README.
Second, these self-study courses are almost entirely in English. Everything from videos to slides to assignments is in English, so there’s a certain barrier to entry. I try to find subtitled versions when compiling course video resources, but most courses only have machine-translated or raw unsubtitled videos, and the slides and assignments are definitely in English. Still, I think this is a challenge worth overcoming, because currently — though I’d very much prefer otherwise — I have to admit that in the field of computer science, many of the best documents, forums, and websites are predominantly English. Developing a habit of reading English certainly has its benefits, at least until the red flags fly over the world (tongue-in-cheek disclaimer 🐶).
Third, and what I find to be the most difficult, is self-discipline. Not having deadlines can be genuinely terrifying at times. Especially as your studies advance, many foreign courses are quite grueling. You need enough motivation to force yourself to sit down and read dozens of pages of a Project Handout, understand a code framework of thousands of lines, and endure hours of debugging. And through all of it — no credits, no GPA, no professor, no classmates — there is only one belief: you are getting stronger.
Who Is This Book For
As I mentioned in the preface, anyone aspiring to self-study computer science can refer to this book. If you already have some foundation in CS and are only interested in a particular area, you can selectively pick and choose the content that interests you. And if you’re a complete novice like I was back then, just stepping into university, I hope this book can serve as your guide, helping you master the knowledge and skills you need with minimal wasted time. In a sense, this book is more like a search engine for courses ranked by my personal experience, helping everyone experience world-class CS courses from the world’s top universities without leaving home.
Of course, as an undergraduate who hasn’t even graduated yet, I deeply feel that I neither have the ability nor the right to promote any particular mode of learning. I simply hope that this resource can help those friends who share the same desire and determination for self-study avoid some detours and enjoy a richer, more diverse, and more fulfilling learning experience.
Special Thanks
Here, with sincere reverence, I express my heartfelt gratitude to all the professors who open-source their course resources free of charge. These courses represent decades of their teaching career’s accumulated knowledge and effort, yet they have chosen to selflessly allow everyone to enjoy such high-quality CS education. Without them, my university life would not have been so fulfilling and joyful. Many professors even replied with hundred-word heartfelt messages after I sent them thank-you emails, which truly moved me deeply. They constantly inspire me to do everything wholeheartedly — whether it’s studying, researching, or living as a person.
Want to Join the Contributors?
One person’s effort is ultimately limited, and this book was written in my spare time during the late nights between intense research — so there are inevitably areas that fall short. Additionally, since my personal research focus is on systems, many courses lean toward the systems domain, with relatively less coverage of mathematics, theoretical computer science, and advanced algorithms. If you’d like to share your self-study experience and resources in other areas, feel free to open a Pull Request directly in the project, or contact me by email ([email protected]).
About Setting Up Study Groups
This book supports page comments. So if you want to self-study a particular course, you can create a chat group (on QQ or WeChat) and then post a comment under the corresponding course page, noting your learning goals and how others can join the group. Additionally, many friends have already set up similar groups through issues in the past — feel free to join any of them directly.
Buy the Author a Cup of Afternoon Tea
The content of this book is completely open-source and free. If you find this project genuinely helpful, you can give the repository a star or buy the author a cup of afternoon tea.
Image title
Similar Articles
@XAMTO_AI: Self-taught programming - who hasn't been knocked down by reality a few times when starting out? A Peking University undergraduate dove into computers from his freshman year, and after four grueling years, the very obstacles that tripped him up and almost made him give up became his most valuable lessons. He organized all the truly effective learning materials and courses into an open-source document, arranged in a practical learning sequence. The fundamentals...
A Peking University undergraduate compiled high-quality open-source course resources (from MIT, Stanford, Berkeley, etc.) accumulated over four years of self-taught computer science into an open-source document arranged in a practical order, aiming to help beginners learn programming systematically from scratch.
@Jolyne_AI: A course list on GitHub hailed by countless self-learners as a 'computer science bachelor's degree substitute': open-source-cs, already with 20k+ Stars. It curates free open courses from top universities like MIT, Stanford, and Princeton, restructured along the traditional CS undergraduate curriculum: from introductory to advanced levels, …
A curated list of open-source computer science courses on GitHub, open-source-cs, featuring free public courses from top universities like MIT and Stanford, arranged according to the undergraduate curriculum. Already with 20k+ Stars, it's ideal for self-learners seeking systematic study.
PKUFlyingPig/cs-self-learning
PKUFlyingPig/cs-self-learning 是一个开源的计算机科学自学指南,整合了众多名校的优质课程资源,帮助自学者系统地学习CS,涵盖数学、编程、系统、AI等多个领域。
@NFTCPS: MIT's 'Mathematics for Computer Science' — if you're serious about CS, save this now. This book is basically the ceiling. Don't be intimidated by 1,048 pages; it's thick but it's written for beginners. I was also stunned at first: 1,048 pages counts as introductory? But when I flipped through, I realized it doesn't rush you to finish at once — it breaks down the fundamentals into tiny pieces...
Recommending the MIT classic textbook 'Mathematics for Computer Science', suitable for computer science beginners to systematically learn foundational mathematics.
@QingQ77: A full-stack AI engineering learning path from zero to mastery, 503 lessons covering from math basics to autonomous agent clusters, fully translated into Chinese with a dedicated website.
A full-stack AI engineering learning path from zero to mastery, containing 503 lessons covering from math basics to autonomous agent clusters, with full Chinese translation and a dedicated website.