r/C_Programming • u/Mental-Square1529 • 16d ago
Question How can I learn C programming without relying on AI?
Hi, everyone!
I’m currently learning to program in C, and I want to become a good programmer without relying on AI to write code or solve problems for me. I feel really bad because I started my course off on the right foot, but due to my heavy course load, I ended up taking the easy way out and using AI assistants. I want to stop doing that and be able to program from scratch using my own knowledge, but of course, I’d rather ask here.
I’m looking for recommendations on:
Books, websites, or courses to learn C properly
Exercises and projects to improve my problem-solving skills
How to learn to debug and understand my own errors
How experienced programmers learned C before AI tools became popular
My goal is to understand the fundamentals of programming, develop my own logic, and be able to solve problems independently
Any advice or resources would be greatly appreciated. Thanks!
Translated with DeepL.com (free version)
14
u/nnotg 16d ago
The very same way everyone else learned it before LLMs were a thing. Read, code, try, miss, fix, rinse, read code, repeat.
1
u/bogdanelcs 16d ago
Learning by doing is probably the most efficient way that people ignore. Everyone is looking for a magical shortcut.
6
u/zadbyee 16d ago
Yo, congratz for starting your journey learning C. Well im not an expert, but i can recommend the book "C Programming: A Modern Approach by K N King", it appears in the resources tab. I really liked the exercises but it's an extense book, if you prefer speed up a little you could follow the beej's guide to c. And yeah, using ai for learning it's a little risky because sometimes it makes you feel like you're learning even though i'ts shallow knowledge. Good luck !!
3
3
u/GenericFoodService 16d ago
W3Schools, GeeksForGeeks, Tutorials Point, and other similar tutorial websites, no matter how many times they are mentioned, are being underrated. You can learn so much stuff entirely for free.
3
u/True_Efficiency7329 16d ago
honestly one of the first things I did to try expanding my knowledge of how to program in C was I tried to recreate some non-OS specific C runtime libraries with my own versions. Like trying to learn how to create a memcpy, memset, strcpy, and strlen.
3
u/Capable_Cockroach_19 16d ago
How much do you currently know about programming in general? Because if you’re really at ground zero I suggest reading Code by Charles Petzold and then the K&R C Book
3
3
u/grimvian 16d ago
Here is an old school video I wish I knew, before I started learning C three years ago:
Learn to program with c by Ashley Mills
https://www.youtube.com/watch?v=UILNmv2kFMc&list=PLCNJWVn9MJuPtPyljb-hewNfwEGES2oIW
I'm not using the same IDE, the program you use to code, But Code::Blocks because it's fast to install, open source, easy to use and everything you'll need are installed.
7
2
1
u/Ancient-Opinion9642 11d ago
Find a project and implement it in C.
I would suggest, getting the book by "Lisp System Implementation" by Nils M. Holm, 2019. Read and type the code in and build a Scheme 9 look alike. The book includes lots of C code as well as implementing some Lisp code. It implements a byte code compiler for the Lisp and a abstract machine for interpreting the Lisp code. Plus you learn C and Lisp. Just typing in code will help you learn C.
The book is available online.
1
u/runningOverA 7d ago
So don't ask Ai to write the code.
Rather ask it to explain anything you don't understand and teach you to code.
33
u/Hippocampal_Harmony 16d ago
The C Programming Language by Kernighan and Ritchie