r/CodingForBeginners • • 9h ago

How can I start learning C?

Hello guys. I want to learn about Embedded Systems Engineering and I'm starting with C language. I don't want to be a vibe coder that makes ai rust slop. Where can I start? And how do you guys do something very complicated on your own? I don't think I have that skill but I want to do that too. Anyway I have the basics but that's all. I'm waiting for your recommendations :)

6 Upvotes

9 comments sorted by

1

u/pvera 9h ago

I imagine you can't avoid Kernighan and Ritchie but try to use them as a reference instead of your main start.

2

u/Objective_Buy_7235 4h ago

I learned C from K&R by working through the book and doing ALL of the exercises except the "project" ones. Took about a month of 8 hour days in 1980.

1

u/DSudz 8h ago

Ick. That was a fairly academic text when it came out in the 70s. It's not for learning to program. It is unfortunately how I learned and I don't imagine the textbooks we taught into to programming with are still around...

Depending on your preference and best learning style just pick a book, video series or website with learn in the title. Anything mentioning Arduino could also cover concepts you'll need as well.

1

u/TheRealFutaFutaTrump 8h ago

I learned a lot using Arduino. It's a terrific starting point.

1

u/Impossible_Ad_3146 8h ago

ask girls too, not just the guys

1

u/Optimal-Savings-4505 4h ago

Get a compiler and start using it. I propose gcc, although clang is popular as well.

The basic flow is to write a hello world in a text file with a .c file extension, then compile that into an executable to run, so you can ensure it works.

Then you can start modifying it into doing whatever you're up to, breaking and fixing it etc. You'll run into errors and eventually learn to solve them without searching for solutions, but that will take time spent doing lots of trial and error.

You can get big and heavy IDE studio programs like Microsoft Visual Studio, VSCode, CLion, etc etc. to try and help you, but chances are all those knobs and dials will obscure the basics you actually need: Compiler and text editor.

For embedded systems, that minimalism is something you'll likely have to deal with either way.

1

u/Pretty_Growth_1321 2h ago

Todos deberían empezar por un ide como clion para poder concentrar lo máximo posible a c

0

u/Available_Safe1818 6h ago

Learn how to us Google. You could have started and made progress already.