# Project-Based-Tutorials-in-C **Repository Path**: swrd/Project-Based-Tutorials-in-C ## Basic Information - **Project Name**: Project-Based-Tutorials-in-C - **Description**: A list of tutorials that work towards the making of small to large projects in C. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2019-04-23 - **Last Updated**: 2022-11-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Project Based Tutorials in C A list of tutorials that work towards the making of small to large projects in C. ## Table of Contents * [Computer Architecture](#computer-architecture) * [Computer Networking](#computer-networking) * [Databases](#databases) * [Game Development](#game-development) * [Operating Systems](#operating-systems) * [Programming Languages](#programming-languages) * [Uncategorized](#uncategorized) * [Other Resources](#other-resources) ## Computer Architecture * [Bitwise](https://github.com/pervognsen/bitwise) `video` `in-progress` * [Emulator 101](http://emulator101.com/) * [Implementing a Virtual Machine in C](https://felixangell.com/blog/virtual-machine-in-c) * Writing a Chip 8 Emulator `in-progress` * [Part 1](http://craigthomas.ca/blog/2014/06/21/writing-a-chip-8-emulator-part-1/) * [Part 2](http://craigthomas.ca/blog/2014/07/17/writing-a-chip-8-emulator-part-2/) * [Part 3](http://craigthomas.ca/blog/2015/02/19/writing-a-chip-8-emulator-draw-command-part-3/) * [Part 4](http://craigthomas.ca/blog/2017/10/15/writing-a-chip-8-emulator-built-in-font-set-part-4/) * [Part 5](http://craigthomas.ca/blog/2018/09/07/writing-a-chip-8-emulator-instruction-set-part-5/) * [Writing a Game Boy emulator](https://cturt.github.io/cinoop.html) * [Write your Own Virtual Machine](https://justinmeiners.github.io/lc3-vm/) ## Computer Networking * [Beej's Guide to Network Programming](http://beej.us/guide/bgnet/html/multi/index.html) `book` * [Concurrent Servers](https://eli.thegreenplace.net/2017/concurrent-servers-part-1-introduction/) * Let's code a TCP/IP stack * [Part 1: Ethernet & ARP](http://www.saminiir.com/lets-code-tcp-ip-stack-1-ethernet-arp/) * [Part 2: IPv4 & ICMPv4](http://www.saminiir.com/lets-code-tcp-ip-stack-2-ipv4-icmpv4/) * [Part 3: TCP Basics & Handshake](http://www.saminiir.com/lets-code-tcp-ip-stack-3-tcp-handshake/) * [Part 4: TCP Data Flow & Socket API](http://www.saminiir.com/lets-code-tcp-ip-stack-4-tcp-data-flow-socket-api/) * [Part 5: TCP Retransmission](http://www.saminiir.com/lets-code-tcp-ip-stack-5-tcp-retransmission/) * [Let's make a NTP Client in C](https://lettier.github.io/posts/2016-04-26-lets-make-a-ntp-client-in-c.html) * [Multiplayer WebSocket Game server written in C using libuv & libwebsockets & Cocos2d-x-HTML5](http://www.gamedevcraft.com/2016/08/part-1-multiplayer-websocket-game.html) * Write an MQTT broker from scratch * [Part 1 - The protocol](https://codepr.github.io/posts/sol-mqtt-broker) * [Part 2 - Networking](https://codepr.github.io/posts/sol-mqtt-broker-p2) * [Part 3 - Server](https://codepr.github.io/posts/sol-mqtt-broker-p3) * [Part 4 - Data structures](https://codepr.github.io/posts/sol-mqtt-broker-p4) * [Part 5 - Topic abstraction](https://codepr.github.io/posts/sol-mqtt-broker-p5) * [Part 6 - Handlers](https://codepr.github.io/posts/sol-mqtt-broker-p6) ## Databases * [Let's Build a Simple Database](https://cstack.github.io/db_tutorial/) ## Game Development * [Astroids Clone](https://dashgl.com/Astroids/) * [Brickout Clone](https://dashgl.com/Brickout/) * [Chess Engine In C](https://www.youtube.com/playlist?list=PLZ1QII7yudbc-Ky058TEaOstZHVbT-2hg) `video` * [Coding A Sudoku Solver in C](https://www.youtube.com/playlist?list=PLkTXsX7igf8edTYU92nU-f5Ntzuf-RKvW) `video` * [Coding a Rogue/Nethack RPG in C](https://www.youtube.com/playlist?list=PLkTXsX7igf8erbWGYT4iSAhpnJLJ0Nk5G) `video` * [Handmade Hero](https://handmadehero.org/) `video` `in-progress` * [Hangman](https://www.youtube.com/playlist?list=PLZ1QII7yudbd2ZHYSEWrSddsvD5PW_r5O) `video` * [How to Program an NES game in C](https://nesdoug.com/) * [How to Program a Text Adventure in C](https://helderman.github.io/htpataic/htpataic01.html) `in-progress` * [Invaders Clone](https://dashgl.com/Invaders/) * [Learn Video Game Programming in C](https://www.youtube.com/playlist?list=PLT6WFYYZE6uLMcPGS3qfpYm7T_gViYMMt) `video` * [Let's Make: Dangerous Dave](https://www.youtube.com/playlist?list=PLSkJey49cOgTSj465v2KbLZ7LMn10bCF9) `video` * [On Tetris and Reimplementation](https://brennan.io/2015/06/12/tetris-reimplementation/) * [SDL 2 Isometric Game Tutorial](https://www.youtube.com/playlist?list=PLsM5EdVxpsQ3YTGlFaOwZsWEWoLVQEkQz) `video` `in-progress` * [Simple Tic Tac Toe in C](https://www.youtube.com/playlist?list=PLZ1QII7yudbc7_ZgXA-gIXmME41Rs2GP5) `video` * [Tic-tac-toe Game in C with SDL](https://www.youtube.com/watch?v=gCVMkKgs3uQ) `video` * Video Game Physics Tutorial * [Part I: An Introduction to Rigid Body Dynamics](https://www.toptal.com/game/video-game-physics-part-i-an-introduction-to-rigid-body-dynamics) * [Part II: Collision Detection for Solid Objects](https://www.toptal.com/game/video-game-physics-part-ii-collision-detection-for-solid-objects) * [Part III: Constrained Rigid Body Simulation](https://www.toptal.com/game/video-game-physics-part-iii-constrained-rigid-body-simulation) * [Writing a Game Boy Advance Game](https://www.reinterpretcast.com/writing-a-game-boy-advance-game) ## Operating Systems * [Build a minimal multi-tasking OS kernel for ARM from scratch](https://github.com/jserv/mini-arm-os) * [Build Your Own Shell](https://github.com/tokenrove/build-your-own-shell) * [Building an Operating System for the Raspberry Pi](https://jsandler18.github.io/) * [Hack the Virtual Memory](https://blog.holbertonschool.com/hack-virtual-memory-stack-registers-assembly-code/) * [How to Create an OS from Scratch](https://github.com/cfenollosa/os-tutorial) `in-progress` * [Learning KVM - implement your own kernel](https://david942j.blogspot.com/2018/10/note-learning-kvm-implement-your-own.html) * [Learning operating system development using Linux kernel and Raspberry Pi](https://github.com/s-matyukevich/raspberry-pi-os) `in-progress` * [Let's build a shell!](https://github.com/kamalmarhubi/shell-workshop) * [Let's Write a Malloc](https://danluu.com/malloc-tutorial/) * Let’s write a Kernel * [Part 1 - Kernel 101](https://arjunsreedharan.org/post/82710718100/kernel-101-lets-write-a-kernel) * [Part 2 - Kernel 201](https://arjunsreedharan.org/post/99370248137/kernel-201-lets-write-a-kernel-with-keyboard) * [Linux Containers in 500 Lines of Code](https://blog.lizzie.io/linux-containers-in-500-loc.html) * [Operating systems development for Dummies](https://medium.com/@lduck11007/operating-systems-development-for-dummies-3d4d786e8ac) * [Operating Systems: From 0 to 1](https://tuhdo.github.io/os01/) `book` * [Rewrite cat](https://learnto.computer/screencasts/bsd-cat) `video` * Rewrite mkdir `video` * [mkdir](https://learnto.computer/screencasts/bsd-mkdir) * [Building paths for mkdir -p](https://learnto.computer/screencasts/bsd-mkdir-p) * [Roll your own toy UNIX-clone OS](http://www.jamesmolloy.co.uk/tutorial_html/) * [The little book about OS development](https://littleosbook.github.io/) `book` * [Write a Shell in C](https://brennan.io/2015/01/16/write-a-shell-in-c/) * [Write a Simple Memory Allocator](https://arjunsreedharan.org/post/148675821737/write-a-simple-memory-allocator) * [Write a System Call](https://brennan.io/2016/11/14/kernel-dev-ep3/) * [Writing a FUSE Filesystem](https://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial/) * [Writing a shell in C](https://danishprakash.github.io/2018/01/15/write-a-shell.html) * Writing a Unix Shell * [Part 1](https://indradhanush.github.io/blog/writing-a-unix-shell-part-1) * [Part 2](https://indradhanush.github.io/blog/writing-a-unix-shell-part-2) * [Part 3](https://indradhanush.github.io/blog/writing-a-unix-shell-part-3) ## Programming Languages * [A Regular Expression Matcher](https://www.cs.princeton.edu/courses/archive/spr09/cos333/beautiful.html) * [A Regular Expression Matching Can Be Simple And Fast](https://swtch.com/~rsc/regexp/regexp1.html) * [Baby's First Garbage Collector](http://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/) * [Build Your Own Lisp](http://www.buildyourownlisp.com/) `book` * [Crafting Interpreters](http://www.craftinginterpreters.com/) `book` `in-progress` * [Let's Build a Compiler: A C & x86 version](https://github.com/lotabout/Let-s-build-a-compiler) * Write a C Interpreter * [Part 0 - Preface](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/0-Preface.md) * [Part 1 - Skeleton](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/1-Skeleton.md) * [Part 2 - Virtual Machine](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/2-Virtual-Machine.md) * [Part 3 - Lexer](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/3-Lexer.md) * [Part 4 - Top-down Parsing](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/4-Top-down-Parsing.md) * [Part 5 - Variables](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/5-Variables.md) * [Part 6 - Functions](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/6-Functions.md) * [Part 7 - Statements](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/7-Statements.md) * [Part 8 - Expressions](https://github.com/lotabout/write-a-C-interpreter/blob/master/tutorial/en/8-Expressions.md) * [Writing a Simple Garbage Collector in C](http://maplant.com/gc.html) * Scheme from Scratch * [Part 1 - Introduction](http://peter.michaux.ca/articles/scheme-from-scratch-introduction) * [Part 2 - Integers](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_1-integers) * [Part 3 - Booleans](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_2-booleans) * [Part 4 - Characters](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_3-characters) * [Part 5 - Strings](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_4-strings) * [Part 6 - The Empty List](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_5-the-empty-list) * [Part 7 - Pairs](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_6-pairs) * [Part 8 - Symbols](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_7-symbols) * [Part 9 - Quote](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_8-quote) * [Part 10 - Environments](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_9-environments) * [Part 11 - if](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_10-if) * [Part 12 - Primitive Procedures Part 1](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_11-primitive-procedures-part-1) * [Part 13 - Primitive Procedures Part 2](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_12-primitive-procedures-part-2) * [Part 14 - Lambda the Ultimate](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_13-lambda-the-ultimate) * [Part 15 - Begin](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_14-begin) * [Part 16 - Cond](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_15-cond) * [Part 17 - Let](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_16-let) * [Part 18 - And and Or](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_17-and-and-or) * [Part 19 - Apply](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_18-apply) * [Part 20 - Eval](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_19-eval) * [Part 21 - I/O](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_20-io) * [Part 22 - Standard Library](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_21-standard-library) * [Part 23 - Garbage Collection](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-v0_22-garbage-collection) * [Part 24 - Conclusion](http://peter.michaux.ca/articles/scheme-from-scratch-bootstrap-conclusion) ## Uncategorized * A dummy blockchain implementation in C * [Part 1](https://myram.xyz/c-blockchain-implementation-1/) * [Part 2](https://myram.xyz/c-blockchain-implementation-2/) * [Build Your Own Text Editor](https://viewsourcecode.org/snaptoken/kilo/) * [How to Write a Video Player in Less Than 1000 Lines](http://dranger.com/ffmpeg/ffmpeg.html) * [Learn FFmpeg libav the Hard Way](https://github.com/leandromoreira/ffmpeg-libav-tutorial) `in-progress` * [Write a hash table in C](https://github.com/jamesroutley/write-a-hash-table) * [Writing an SVG Library](http://www.code-in-c.com/writing-svg-library-c/) ## Other Resources * C * [awesome-c](https://github.com/kozross/awesome-c) * [Modern C](http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf) * A Guide to Undefined Behavior in C and C++ * [Part 1](https://blog.regehr.org/archives/213) * [Part 2](https://blog.regehr.org/archives/226) * [Part 3](https://blog.regehr.org/archives/232) * What Every C Programmer Should Know About Undefined Behavior * [Part 1](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html) * [Part 2](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_14.html) * [Part 3](http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_21.html) * [What a C programmer should know about memory](http://marek.vavrusa.com/memory/) * [What Every Programmer Should Know About Memory](https://people.freebsd.org/~lstewart/articles/cpumemory.pdf) * Practice Projects * [Beginner Projects](https://github.com/jorgegonzalez/beginner-projects) * [Mega Project List](https://github.com/karan/Projects) * [The UChicago χ-Projects](http://chi.cs.uchicago.edu/index.html) * Similar List * [awesome-diy-software](https://github.com/cweagans/awesome-diy-software) * [Build Your Own X](https://github.com/danistefanovic/build-your-own-x) * [Projects-from-Scratch](https://github.com/AlgoryL/Projects-from-Scratch) * [Project Based Learning](https://github.com/tuvtran/project-based-learning)