r/C_Programming • u/Critical-Common-2117 • May 31 '26
Currently learning C with ChatGPT
Hi everyone!
This is my first time on Reddit ever. I'm looking to upskill for my job and want to transition into embedded engineering. From what I've gathered, learning C is the absolute best place to start.
Right now, I'm using ChatGPT as my tutor. The way we work is: it explains a topic (variables, loops, functions, basic syntax, etc.), introduces the concepts, and then gives me coding assignments which I solve on the spot.
However, I just caught myself thinking: is this actually a good idea?
I'm fully aware that ChatGPT isn't an absolute source of truth and it can hallucinate or make mistakes. But my logic was that it has processed countless guides and tutorials from the web and can tailor them to my learning pace.
Also, as a next step, I'm thinking about getting some hardware to practice on. What are your thoughts on starting with the ESP32? Is it a good platform for a beginner learning C, or should I look into something else like STM32 or RP2040?
I’d love to get your thoughts, opinions, and advice on my approach. Are there any hidden traps I should watch out for?
4
u/mikeblas May 31 '26
You might also try /r/learnprogramming , /r/cscareerquestions , r/esp32 , and /r/embedded and ...
There's no one way to learn things. A million different paths lead to success. The most important thing is to not stop, not give up. People quit when it gets hard instead of pushing through or taking a different path, and that's the most common way to fail.
7
u/Abigboi_ May 31 '26
I really wouldn't use GPT for learning. C is a language where you really need to know what you're doing. Asking it for ideas for practice is fine, but not the language itself.
2
u/abrady May 31 '26
For C programming you are 99.9% safe from hallucinations.
The only thing I’d watch out for with jumping straight to hardware is that your iteration time goes up and debugability goes down.
That said: The most important thing is having a set of projects to motivate you, otherwise you end up in the valley of intermediate knowledge. What are you building?
1
u/Upbeat-Storage9349 May 31 '26
Read a book
1
u/BarracudaDefiant4702 May 31 '26
I think it's fine for learning from, but remember like human teaches it makes mistakes and it does get more right then wrong. On the plus side, it doesn't get as defensive as too many people do when you question it or point out it's errors. Consider it a trust but verify.... Having it pick topics and explain topics is generally good. Unlink many node and python modules with ever changing third party libraries, C is far better defined and so far less prone to hallucination compared to other languages.
1
u/Practical-Sleep4259 May 31 '26
Using ChatGPT to learn programming is like limiting yourself to writing very basic children's books when you want to write Game of Thrones.
The roots and bones of why the thing is good isn't producible by AI, but you can make a sweet cardboard cutout that looks like it could be the same thing as long as no one gets close to it.
Right now you have a mentality of "Get into the cave as fast and as far as possible", when that's not the goal of a chisel and hammer.
2
u/JaguarWan Jun 01 '26
I think it's actually a good idea, in my experience ChatGPT writes decent C and the latest models are actually quite thorough. I'd say the main risk may be it does not challenge you enough and you start stagnating. You also should not limit yourself to a single teacher, be it human or AI, the internet is vast and you have all kind of high quality material to draw from (possibly with GPT help). A small embedded project is a good idea, as you will start encountering actual problems instead of mere assignments.
1
u/TiredEngineer-_- May 31 '26
For C, I really recommend going to
https://cppreference.com/c
And dig around. This is THE place to be to learn C and when the language of the reference doesnt make sense, search it up from there and you can look into stackoverflow, some geeks for geeks, maybe some AI (Id advise against chat, and maybe opt more for like, claude, gemini, llama), but THE documentation is whats best. Look at the gcc manual pages (also online), clang man pages, etc.
1
u/grimvian Jun 01 '26
Here is an old school video I wish I knew, before I started learning C three years ago:
Learn to program with c
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.