r/cprogramming • u/Antique-Room7976 • Jan 05 '26
What's the next step with c programming?
I just did the c portion of cs50x and really like it. My problem is I suck so how do I get better? I tried to build a version of unix but I was just lost. Any help would be appreciated.
10
Upvotes
5
u/dcpugalaxy Jan 05 '26
Start small.
Write a program to compute the value of pi based on the "dart throwing" algorithm.
Write an echo server.
2
u/studiocrash Jan 05 '26
Get yourself a good book and do all the exercises. I’d recommend “Effective C” by Robert Seacord or “C Programming: a Modern Approach” by K. N. King.
If you don’t have much money, you can find “Modern C” by Jens Gustedt for free as a pdf online. It’s pretty good.
2
u/Illustrious-Cat8222 Jan 05 '26
Generally, pick a project that interests you that you can work on in bite-sized chunks. As you work on each chunk, code it and test it.
By working on a bunch of chunks (subproblems) it'll help you stay motivated, because you'll have steady measurable progress.
1
u/lo0nk Jan 05 '26
Build stuff like
A server A game 2D/3D graphics library Math library Drawing program Chess engine Compiler
1
u/BranchLatter4294 Jan 06 '26
So your first project was Unix? Maybe start with Hello World, or a Tip Calculator, or something simple. Then work your way up to complexity. Not sure what you are trying to do here, as this seems sketchy.
3
u/TDGrimm Jan 05 '26
OOD then OOP then UIDesign then DB design mix with UNIX/LINUX backend
2
u/goldenfrogs17 Jan 06 '26
unix? the next step is tic tac toe, or tetris, or a spreadsheet app
1
u/TheTrueXenose Jan 05 '26
I told my coworker write a memory allocator, allocate a 1MB array globally and now write malloc from it and free.
1
u/gordonv Jan 06 '26
With cs50, the point is to expose you to multiple types of programming. That's because there are multiple types of disciplines and theories in programming.
For now, complete the rest of cs50. When you get into SQL, that's gonna feed your mind on how you could have made structs better.
You stop sucking when you can separate complex ideas into separate mental buckets. Trying to push everything through the same hole is bad. That's one of the bigger reflections of cs50
1
u/kellyjj1919 Jan 07 '26
Think of a problem, and fix it. Coding is like anything else , you have to practice and do the work
1
u/SubstantialCase3062 Jan 07 '26
Watch other program to learn what they do to build experience and read a lot of books and documentation and manual pages
1
u/mardrd Jan 08 '26
You can have some fun with SDL and Gtk lib, when i need something i use to code it, by example: youtube mp3/mp4 downloader, usb cleaner, image processing (grayscale, split image in tiles.. idk) video compressor, think of what you need and thats it start from a basic script and once you get something nice try to add more features like GUI, cross platform, web assembly or simply refact using tools like Perf or valgrind to track memory leaks, wrong logic, and callback performance .. if you code something useful you gonna have more fun :D
1
u/Melodic_Extent1186 Jan 09 '26
Write code as much as possible - certainly, if you enjoy coding - and you'll become better and better in no time... because if you enjoy doing something, time flies...
0
u/[deleted] Jan 05 '26
[deleted] — view deleted comment
1
u/[deleted] Jan 06 '26
[removed] — view removed comment