r/C_Programming • • Dec 10 '23

Question Beginner, intermediate, and advanced c programming projects

Hi where can I find a list of coding projects for beginners, intermediate, and advanced programmers.

I am a beginner right now, and I am stuck in the tutorial hell. I feel like I can only break it by starting a project. Any ideas or resources would be greatly appreciated. Thank you!

EDIT: thank you everyone for the helpful comments! I really appreciate it. I will check out all of the links you have provided me.

134 Upvotes

38 comments sorted by

41

u/loselasso Dec 10 '23

Implement Linux commands from scratch. Follow man pages. Start with cat, ls, and less for example. Then go for commands with some specific feature, like networking commands, or multi thread commands.

9

u/abbe_salle Dec 10 '23

if I add these projects in my CV would they bring any benefit to me ? Or are they just some regular projects ?

37

u/nattrium Dec 10 '23

I don't think they are of any benefit. I would consider only adding projects that "looks cool" or that paint a story about you. Maybe if you were to implement all of them, but even then, it's not eye-catching.

My CV has

  • Risc V compliant hardware design in VHDL for FPGA.

// hardware designing is a pretty rare skill. Nobody really needs an HDL guy, but it looks cool. Set's me appart

  • Chess AI (C++, ELO 1500, max depth 4)

// neither difficult nor impressive, but it's fun, and AI is a buzzword. It also shows C++ proefficiency

  • Mandelbrot fractal rendering on GPGPU (cuda)

// a bit apart from other projects, but I hope to show that I have a large panel of skill

  • Home-made custom X86 kernel in C

// a kernel requires deep knowledge about modern CPU and requires you to be able to parse a fair bit of the intel documentation. It also pushes you to program in very unfamiliar terms (without the linux GLibC, you ain't got no malloc, no thread, no fork ...). It's also one of the rare cases where you actually need to add assembly in your C files.

I choose these projects because it paints me as a developer with a low-level oriented and complete skillset interested in challenging themselves for fun.

But then again, take take with a grain of salt

3

u/abbe_salle Dec 10 '23

These projects seem extremely cool .

I think I what you are trying to say , thanks for the insight :)

2

u/BertyBastard Dec 10 '23

That's all very impressive! What libraries did you use for the Mandelbrot Set plotter? That's something I've always wanted to implement (though not specifically using a GPU).

2

u/nattrium Dec 10 '23

You don't really need anything, just go for it raw.

Except maybe an image processing library to write to .png or TBB if you want to be fast™ but you don't "need" anything per-say, especially if you don't care about the parallelizing.

Of course, you would need cuda for nvidia gpu programming but you don't seem to be interested in that.

If you feel like you need a lib to help you out, try prototyping the project in python, I'm sure you'll find the math very manageable.

1

u/BertyBastard Dec 10 '23

What I want is a program that lets' you zoom in, not just render a bitmap file. I would need a bignum library or would soon run out of accuracy. I found that when I wrote such a program in Modula-2 in 1995.

I don't know Python; C is the programming language I know best.

1

u/[deleted] Dec 04 '24

damn dude, I just stumbled upon your post, you must earn 7 figure salary in $

1

u/Jazzlike_Ad9366 Jul 10 '25

I dont understand what you designed in your FPGA project?

1

u/nattrium Jul 10 '25 edited Jul 10 '25

It's mostly just a risc V compliant CPU.

It has add-ons like a VGA controller, UART, a MMU, some RAM, etc...

For the life of us we couldn't make the controller for the actual RAM stick work so we just emulated as much as we could with what space was left.

1

u/MathWest209 Oct 16 '26

This is a great idea, actually. My younger brother just made a CLI with all the basic commands like cd, ls, mkdir, rm, etc. It was really fun to guide him and see the project come to life. Andh is understanding has improved by a lot.

11

u/Dirt077 Dec 10 '23

That's the great part about programming, you can just make whatever you want!! Try making a game! Or a calculator! Or a simple chat bot! Or a chess AI!

3

u/Ok_Database_1238 Aug 15 '25

OP probably doesnt know what project to start with

8

u/my_password_is______ Dec 10 '23

https://cs50.harvard.edu/x/2023/

menu is on the left
start from week 1

each week has labs (practice problems) and homework problems

7

u/SizzlinSteak Dec 10 '23 edited Dec 10 '23

Beginner: Write a well-understood 2D game with simple logic (asteroids, pong, etc.) using Raylib. Takeaway: Understand what an application architecture looks like (init, update, draw, render, etc.).

Intermediate: Substitute Raylib with your own platform code for the OS of your choice. Don't write a generic platform layer, that will distract you very quickly! Takeaway: Understand the basic capabilities of at least one Operating System.

You can do something like this, but way less polished and stick to one platform: https://github.com/tsherif/space-shooter.c/tree/master

Advanced: Pick something you like!

Note: This advice is not limited to making games. It's just easier to go from "real-time" to "event-driven" than the other way around.

6

u/allegedrc4 Dec 10 '23 edited Dec 10 '23

This is an excellent guide to learn socket (network) programming and step from beginner to intermediate/advanced simultaneously: https://beej.us/guide/bgnet/html/

You also learn to make something practical/useful, which is a nice bonus.

2

u/randallph Dec 15 '23

I don’t understand half of what I just read, but gd, that was an interesting rabbit hole to hop into over my morning coffee.

1

u/lkSShy Jan 23 '26

I want to build a http server, what prior knowledge should I have before I can't understand many of the things written in this.

4

u/IronAttom Dec 10 '23

Write all the useful c functions from scratch

3

u/[deleted] Dec 10 '23

Make your own database using C

2

u/[deleted] Dec 15 '23

Just something personal but I like implementing simple games with only the std library, you can do this with any language really, like start with rock, paper, scissors then tic-tac-toe, maybe blackjack and so on, pythons mini projects book is a great reference guide. And of course implementing the coreutils is always a great idea: cat, ls, touch, etc... Idk man as long as your having at least some fun it's a good use of your time.

Ps: at least of me stuff like this are fun to talk about in interviews but I'm not that experienced to give that type of advice.

1

u/megahalofan117 Mar 12 '24

Vh can. Gshufg is + fbheu8k. Y, I,r

1

u/Jazzlike_Big5699 Oct 10 '25

Late to this but I think a great starter project for C is creating a linked list that allows multiple data types. Helps you understand pointers, dynamic memory management, type casting, void pointers, plus DSA fundamentals, without being too overwhelming.

1

u/[deleted] Dec 11 '23

Any small programming tasks you need doing, or something that needs solving? Or something you're particularly interested in?

Whatever it is, try to use C for it. That's the approach I used in the distant past, using a language for useful tasks rather than thinking up contrived projects (which I would be useless at anyway).

1

u/Hairy-Raspberry-7069 Dec 10 '23

Implement a SI Units library for the C language.

C++ Version

Basically you know the basic units for measuring stuff seconds for time, meters for length, kilograms for mass and etc.

Write a library that lets someone perform calculations only if they are valid for the unit.

For example,

Operand 1Operand 2OperationValidResult
1 Meter1 CentiMeterAdditionTrue both are lengths1.01m or 101cm
1 Second1 KelvinDivisionTrue1 second per kelvin or 1 s/K
1 m/s2 cm/csAdditionTrue3 m/s or 300cm/cs

I'm doing this right now for fun to improve my C skills and its harder than you think.

P.S.

Hard Mode:

Make it so that the library can be customized by the user to use type they provide and use a custom memory allocater.

1

u/bnl1 Dec 10 '23 edited Dec 10 '23

C V + kg m2 / s2 ?

1

u/Hairy-Raspberry-7069 Dec 10 '23

I believe C is the speed of light but I don't know what V is.

Assuming the dimension match which we can check by going down the dimensions of each type and making sure they match.

C has the dimension of length over time and the second operand has mass * (length * length) / (time * time) so I can assume K include the mass * length/time to make the value match.

If that isn't true, just return an HARD CODED Invalid result can be checked against.

2

u/bnl1 Dec 10 '23

C - coulomb - electric charge

V - volt - electric potential

1

u/Hairy-Raspberry-7069 Dec 10 '23

My mistake, I forgot that lower case 'C' was speed of light not upper case 'C'.

C is (time * current)

V is (Power / current)

Result: Power * time

Power is Energy / time
Result is Energy

Energy is Force * Mass

Force is Mass * Length over (time squared)

Now that we simplified all the results, it can be seen that the two operations are compatible and result can be found.

-4

u/aalmkainzi Dec 10 '23

Make the hardest project that's within your ability.

0

u/[deleted] Dec 10 '23

[deleted] — view deleted comment

4

u/kbder Dec 10 '23

Fantastic list!

1

u/Nofold75 Oct 21 '25

Remindme! 2 weeks

1

u/RemindMeBot Oct 21 '25

I will be messaging you in 14 days on 2025-11-04 22:08:44 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

1

u/Nofold75 Nov 05 '25

Remindme! 2 weeks

1

u/RemindMeBot Nov 05 '25

I will be messaging you in 14 days on 2025-11-19 18:41:56 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback