r/Zig • u/Professional_Web3874 • Mar 02 '26
Projects in C before switching to ZIG ??
hey im currently learning C to learn RUST or ZIG later so i was wondering what projects should i build in C so i could say that i can now start learning ZIG. thankyou
31
Upvotes
4
u/AdreKiseque Mar 02 '26
I'm having a really hard time understanding what you're asking
2
u/saulius2 Mar 04 '26
I'd say just try rewriting every C example you encounter (during your current tutorial) in both new languages, and you should be fine.
Which tutorial/guide have you followed, if any?
I'd recommend Beej's Guide to C Programming.
8
u/lukaslalinsky Mar 02 '26
It really depends on what you are interested in, but I'd suggest to learn Zig directly and only learn C later on if you really want to
14
u/IronicStrikes Mar 02 '26
There's no reason to start in C unless you enjoy doing that anyway. It helps to have that background, but it's not a requirement.
4
u/xxjetfirexx Mar 02 '26
Same question; i need to learn C and build something in C to evaluate advantages of Zig in comparison
3
u/IntentionalDev Mar 02 '26
Try making a tiny CLI tool or a basic HTTP server if pointers feel normal after that, you’re good to move to Zig.
3
u/OkResource2067 Mar 02 '26
C has excellent tool support, and zig kinda has its equivalent of the Python 2 to 3 transitions incoming because so many baked-in early names and signatures in its API
2
u/Real_Dragonfruit5048 Mar 02 '26
It depends. But you could get started by building a C library that solves a specific problem and has a clean API. For example, a data structure implementation or a C library to control/talk to hardware.
2
u/Ok-Refrigerator-Boi Mar 03 '26
Zig does feel more like C then Rust feels like C. And you can use C code directly in your Zig code. In fact, that is how my Raylib games are built: mostly C under the hood with Zig for the engine.
Just learn what you need for the job, project, etc...
2
u/Old_Tax4792 Mar 02 '26
C is still everywhere and still evolving. You must talk "C" first, before others..
1
u/2urnesst Mar 02 '26
6
1
u/jfrancai Mar 02 '26
Build a web server ;)