├── CONTRIBUTING.md └── README.md /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # CONTRIBUTING GUIDELINES 2 | 3 | * Tutorial(s) should work towards the completion of a small to large project in C 4 | * The use of other programming languages are okay as long as the focus is on C 5 | * Tutorials should be place under the correct category (i.e. a game tutorial would go under the Game Development category) 6 | * If submitting a multi-part series that doesn't include a Table of Contents, submit as follows: 7 | ``` 8 | Title: 9 | * [Part 1](link_to_part_1) 10 | * [Part 2](link_to_part_2) 11 | * [Part 3](link_to_part_3) 12 | ... 13 | ``` 14 | * If submitting a video series link directly to playtlist when possible (i.e. [Learn Video Game Programming in C](https://www.youtube.com/playlist?list=PLT6WFYYZE6uLMcPGS3qfpYm7T_gViYMMt)) 15 | * Mark tutorial(s) with appropriate tags: `book`, `video`, `in-progress`. (i.e. Handmade Hero `video` `in-progress`) 16 | * Mark abanonded tutorials with `abandoned` tag (i.e. Handmade Quake `video` `abandoned`) 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project Based Tutorials in C 2 | 3 | A list of tutorials that work towards the making of small to large projects in C. 4 | 5 | ## Table of Contents 6 | 7 | * [Computer Architecture](#computer-architecture) 8 | * [Computer Networking](#computer-networking) 9 | * [Databases](#databases) 10 | * [Game Development](#game-development) 11 | * [Operating Systems](#operating-systems) 12 | * [Programming Languages](#programming-languages) 13 | * [Uncategorized](#uncategorized) 14 | * [Other Resources](#other-resources) 15 | 16 | ## Computer Architecture 17 | 18 | * [Bitwise](https://github.com/pervognsen/bitwise) `video` `in-progress` 19 | * [Emulator 101](http://emulator101.com/) 20 | * [Implementing a Virtual Machine in C](https://felixangell.com/blog/virtual-machine-in-c) 21 | * Writing a Chip 8 Emulator `in-progress` 22 | * [Part 1](http://craigthomas.ca/blog/2014/06/21/writing-a-chip-8-emulator-part-1/) 23 | * [Part 2](http://craigthomas.ca/blog/2014/07/17/writing-a-chip-8-emulator-part-2/) 24 | * [Part 3](http://craigthomas.ca/blog/2015/02/19/writing-a-chip-8-emulator-draw-command-part-3/) 25 | * [Part 4](http://craigthomas.ca/blog/2017/10/15/writing-a-chip-8-emulator-built-in-font-set-part-4/) 26 | * [Part 5](http://craigthomas.ca/blog/2018/09/07/writing-a-chip-8-emulator-instruction-set-part-5/) 27 | * [Writing a Game Boy emulator](https://cturt.github.io/cinoop.html) 28 | * [Write your Own Virtual Machine](https://justinmeiners.github.io/lc3-vm/) 29 | 30 | ## Computer Networking 31 | 32 | * [Beej's Guide to Network Programming](http://beej.us/guide/bgnet/html/multi/index.html) `book` 33 | * [Concurrent Servers](https://eli.thegreenplace.net/2017/concurrent-servers-part-1-introduction/) 34 | * Let's code a TCP/IP stack 35 | * [Part 1: Ethernet & ARP](http://www.saminiir.com/lets-code-tcp-ip-stack-1-ethernet-arp/) 36 | * [Part 2: IPv4 & ICMPv4](http://www.saminiir.com/lets-code-tcp-ip-stack-2-ipv4-icmpv4/) 37 | * [Part 3: TCP Basics & Handshake](http://www.saminiir.com/lets-code-tcp-ip-stack-3-tcp-handshake/) 38 | * [Part 4: TCP Data Flow & Socket API](http://www.saminiir.com/lets-code-tcp-ip-stack-4-tcp-data-flow-socket-api/) 39 | * [Part 5: TCP Retransmission](http://www.saminiir.com/lets-code-tcp-ip-stack-5-tcp-retransmission/) 40 | * [Let's make a NTP Client in C](https://lettier.github.io/posts/2016-04-26-lets-make-a-ntp-client-in-c.html) 41 | * Write an MQTT broker from scratch 42 | * [Part 1 - The protocol](https://codepr.github.io/posts/sol-mqtt-broker) 43 | * [Part 2 - Networking](https://codepr.github.io/posts/sol-mqtt-broker-p2) 44 | * [Part 3 - Server](https://codepr.github.io/posts/sol-mqtt-broker-p3) 45 | * [Part 4 - Data structures](https://codepr.github.io/posts/sol-mqtt-broker-p4) 46 | * [Part 5 - Topic abstraction](https://codepr.github.io/posts/sol-mqtt-broker-p5) 47 | * [Part 6 - Handlers](https://codepr.github.io/posts/sol-mqtt-broker-p6) 48 | 49 | ## Databases 50 | 51 | * [Let's Build a Simple Database](https://cstack.github.io/db_tutorial/) 52 | 53 | ## Game Development 54 | 55 | * [Astroids Clone](https://gtk.dashgl.com/?folder=Astroids) 56 | * [Brickout Clone](https://gtk.dashgl.com/?folder=Brickout) 57 | * [Chess Engine In C](https://www.youtube.com/playlist?list=PLZ1QII7yudbc-Ky058TEaOstZHVbT-2hg) `video` 58 | * [Coding A Sudoku Solver in C](https://www.youtube.com/playlist?list=PLkTXsX7igf8edTYU92nU-f5Ntzuf-RKvW) `video` 59 | * [Coding a Rogue/Nethack RPG in C](https://www.youtube.com/playlist?list=PLkTXsX7igf8erbWGYT4iSAhpnJLJ0Nk5G) `video` 60 | * [Creating a 2D platformer](https://www.parallelrealities.co.uk/tutorials/#ppp) 61 | * [Creating a 2D shoot 'em up](https://www.parallelrealities.co.uk/tutorials/#shooter) 62 | * [Creating a 2D top-down shooter](https://www.parallelrealities.co.uk/tutorials/#bad) 63 | * [Handmade Hero](https://handmadehero.org/) `video` `in-progress` 64 | * [Hangman](https://www.youtube.com/playlist?list=PLZ1QII7yudbd2ZHYSEWrSddsvD5PW_r5O) `video` 65 | * [How to Program an NES game in C](https://nesdoug.com/) 66 | * [How to Program a Text Adventure in C](https://helderman.github.io/htpataic/htpataic01.html) `in-progress` 67 | * [Invaders Clone](https://gtk.dashgl.com/?folder=Invaders) 68 | * [Learn How To Develop Your Own GameBoy Games](https://www.youtube.com/playlist?list=PLeEj4c2zF7PaFv5MPYhNAkBGrkx4iPGJo) `video` `in-progress` 69 | * [Learn Video Game Programming in C](https://www.youtube.com/playlist?list=PLT6WFYYZE6uLMcPGS3qfpYm7T_gViYMMt) `video` 70 | * [Let's Make: Dangerous Dave](https://www.youtube.com/playlist?list=PLSkJey49cOgTSj465v2KbLZ7LMn10bCF9) `video` 71 | * [On Tetris and Reimplementation](https://brennan.io/2015/06/12/tetris-reimplementation/) 72 | * [SDL 2 Isometric Game Tutorial](https://www.youtube.com/playlist?list=PL6Ikt4l3NbVjb7WR-eTgjOBMNCn7f3u7x) `video` `in-progress` 73 | * [Simple Tic Tac Toe in C](https://www.youtube.com/playlist?list=PLZ1QII7yudbc7_ZgXA-gIXmME41Rs2GP5) `video` 74 | * [Tic-tac-toe Game in C with SDL](https://www.youtube.com/watch?v=gCVMkKgs3uQ) `video` 75 | * Video Game Physics Tutorial 76 | * [Part I: An Introduction to Rigid Body Dynamics](https://www.toptal.com/game/video-game-physics-part-i-an-introduction-to-rigid-body-dynamics) 77 | * [Part II: Collision Detection for Solid Objects](https://www.toptal.com/game/video-game-physics-part-ii-collision-detection-for-solid-objects) 78 | * [Part III: Constrained Rigid Body Simulation](https://www.toptal.com/game/video-game-physics-part-iii-constrained-rigid-body-simulation) 79 | * [Writing 2D Games in C using SDL](https://www.youtube.com/watch?v=yFLa3ln16w0) `video` 80 | * [Writing a Game Boy Advance Game](https://www.reinterpretcast.com/writing-a-game-boy-advance-game) 81 | 82 | ## Operating Systems 83 | 84 | * [Build a minimal multi-tasking OS kernel for ARM from scratch](https://github.com/jserv/mini-arm-os) 85 | * [Build Your Own Shell](https://github.com/tokenrove/build-your-own-shell) 86 | * [Building an Operating System for the Raspberry Pi](https://jsandler18.github.io/) 87 | * [Hack the Virtual Memory](https://blog.holbertonschool.com/hack-virtual-memory-stack-registers-assembly-code/) 88 | * [How to Create an OS from Scratch](https://github.com/cfenollosa/os-tutorial) `in-progress` 89 | * [Learning KVM - implement your own kernel](https://david942j.blogspot.com/2018/10/note-learning-kvm-implement-your-own.html) 90 | * [Learning operating system development using Linux kernel and Raspberry Pi](https://github.com/s-matyukevich/raspberry-pi-os) `in-progress` 91 | * [Let's build a shell!](https://github.com/kamalmarhubi/shell-workshop) 92 | * [Let's Write a Malloc](https://danluu.com/malloc-tutorial/) 93 | * Let’s write a Kernel 94 | * [Part 1 - Kernel 101](https://arjunsreedharan.org/post/82710718100/kernel-101-lets-write-a-kernel) 95 | * [Part 2 - Kernel 201](https://arjunsreedharan.org/post/99370248137/kernel-201-lets-write-a-kernel-with-keyboard) 96 | * [Linux Containers in 500 Lines of Code](https://blog.lizzie.io/linux-containers-in-500-loc.html) 97 | * [Operating systems development for Dummies](https://medium.com/@lduck11007/operating-systems-development-for-dummies-3d4d786e8ac) 98 | * [Operating Systems: From 0 to 1](https://tuhdo.github.io/os01/) `book` 99 | * [Rewrite cat](https://learnto.computer/screencasts/bsd-cat) `video` 100 | * Rewrite mkdir `video` 101 | * [mkdir](https://learnto.computer/screencasts/bsd-mkdir) 102 | * [Building paths for mkdir -p](https://learnto.computer/screencasts/bsd-mkdir-p) 103 | * [Roll your own toy UNIX-clone OS](http://www.jamesmolloy.co.uk/tutorial_html/) 104 | * [The little book about OS development](https://littleosbook.github.io/) `book` 105 | * [Write a Shell in C](https://brennan.io/2015/01/16/write-a-shell-in-c/) 106 | * [Write a Simple Memory Allocator](https://arjunsreedharan.org/post/148675821737/write-a-simple-memory-allocator) 107 | * [Write a System Call](https://brennan.io/2016/11/14/kernel-dev-ep3/) 108 | * [Writing a FUSE Filesystem](https://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial/) 109 | * [Writing a shell in C](https://danishprakash.github.io/2018/01/15/write-a-shell.html) 110 | * Writing a Unix Shell 111 | * [Part 1](https://indradhanush.github.io/blog/writing-a-unix-shell-part-1) 112 | * [Part 2](https://indradhanush.github.io/blog/writing-a-unix-shell-part-2) 113 | * [Part 3](https://indradhanush.github.io/blog/writing-a-unix-shell-part-3) 114 | 115 | ## Programming Languages 116 | 117 | * [A Regular Expression Matcher](https://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html) 118 | * [A Regular Expression Matching Can Be Simple And Fast](https://swtch.com/~rsc/regexp/regexp1.html) 119 | * [Baby's First Garbage Collector](http://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/) 120 | * [Build Your Own Lisp](http://www.buildyourownlisp.com/) `book` 121 | * [Crafting Interpreters](http://www.craftinginterpreters.com/) `book` `in-progress` 122 | * [Let's Build a Compiler: A C & x86 version](https://github.com/lotabout/Let-s-build-a-compiler) 123 | * Write a C Interpreter 124 | * [Part 0 - Preface](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/0-Preface.md) 125 | * [Part 1 - Skeleton](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/1-Skeleton.md) 126 | * [Part 2 - Virtual Machine](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/2-Virtual-Machine.md) 127 | * [Part 3 - Lexer](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/3-Lexer.md) 128 | * [Part 4 - Top-down Parsing](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/4-Top-down-Parsing.md) 129 | * [Part 5 - Variables](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/5-Variables.md) 130 | * [Part 6 - Functions](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/6-Functions.md) 131 | * [Part 7 - Statements](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/7-Statements.md) 132 | * [Part 8 - Expressions](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/8-Expressions.md) 133 | * [Writing a Simple Garbage Collector in C](http://maplant.com/gc.html) 134 | * Scheme from Scratch 135 | * [Part 1 - Introduction](http://peter.michaux.ca/articles/scheme-from-scratch-introduction) 136 | * [Part 2 - Integers](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_1-integers) 137 | * [Part 3 - Booleans](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_2-booleans) 138 | * [Part 4 - Characters](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_3-characters) 139 | * [Part 5 - Strings](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_4-strings) 140 | * [Part 6 - The Empty List](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_5-the-empty-list) 141 | * [Part 7 - Pairs](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_6-pairs) 142 | * [Part 8 - Symbols](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_7-symbols) 143 | * [Part 9 - Quote](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_8-quote) 144 | * [Part 10 - Environments](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_9-environments) 145 | * [Part 11 - if](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_10-if) 146 | * [Part 12 - Primitive Procedures Part 1](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_11-primitive-procedures-part-1) 147 | * [Part 13 - Primitive Procedures Part 2](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_12-primitive-procedures-part-2) 148 | * [Part 14 - Lambda the Ultimate](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_13-lambda-the-ultimate) 149 | * [Part 15 - Begin](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_14-begin) 150 | * [Part 16 - Cond](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_15-cond) 151 | * [Part 17 - Let](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_16-let) 152 | * [Part 18 - And and Or](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_17-and-and-or) 153 | * [Part 19 - Apply](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_18-apply) 154 | * [Part 20 - Eval](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_19-eval) 155 | * [Part 21 - I/O](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_20-io) 156 | * [Part 22 - Standard Library](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_21-standard-library) 157 | * [Part 23 - Garbage Collection](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_22-garbage-collection) 158 | * [Part 24 - Conclusion](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-conclusion) 159 | 160 | ## Uncategorized 161 | 162 | * A dummy blockchain implementation in C 163 | * [Part 1](https://myram.xyz/c-blockchain-implementation-1/) 164 | * [Part 2](https://myram.xyz/c-blockchain-implementation-2/) 165 | * [Build Your Own Text Editor](https://viewsourcecode.org/snaptoken/kilo/) 166 | * [How to Write a Video Player in Less Than 1000 Lines](http://dranger.com/ffmpeg/ffmpeg.html) 167 | * [Learn FFmpeg libav the Hard Way](https://github.com/leandromoreira/ffmpeg-libav-tutorial) `in-progress` 168 | * [Write a hash table in C](https://github.com/jamesroutley/write-a-hash-table) 169 | * [Writing an SVG Library](http://www.codedrome.com/svg-library-in-c/) 170 | 171 | ## Other Resources 172 | 173 | * C 174 | * [awesome-c](https://github.com/kozross/awesome-c) 175 | * [Modern C](https://gforge.inria.fr/frs/download.php/latestfile/5298/ModernC.pdf) 176 | * A Guide to Undefined Behavior in C and C++ 177 | * [Part 1](https://blog.regehr.org/archives/213) 178 | * [Part 2](https://blog.regehr.org/archives/226) 179 | * [Part 3](https://blog.regehr.org/archives/232) 180 | * What Every C Programmer Should Know About Undefined Behavior 181 | * [Part 1](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html) 182 | * [Part 2](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_14.html) 183 | * [Part 3](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_21.html) 184 | * [What a C programmer should know about memory](http://marek.vavrusa.com/memory/) 185 | * [What Every Programmer Should Know About Memory](https://people.freebsd.org/~lstewart/articles/cpumemory.pdf) 186 | * Practice Projects 187 | * [Beginner Projects](https://github.com/jorgegonzalez/beginner-projects) 188 | * [Mega Project List](https://github.com/karan/Projects) 189 | * [The UChicago χ-Projects](http://chi.cs.uchicago.edu/index.html) 190 | * Similar List 191 | * [awesome-diy-software](https://github.com/cweagans/awesome-diy-software) 192 | * [Build Your Own X](https://github.com/danistefanovic/build-your-own-x) 193 | * [Projects-from-Scratch](https://github.com/AlgoryL/Projects-from-Scratch) 194 | * [Project Based Learning](https://github.com/tuvtran/project-based-learning) 195 | --------------------------------------------------------------------------------