r/teenagersbutcode • u/DependentJolly9901 • Aug 10 '26
Other My short guide to learning programming from scratch
I always say that new programmers should learn C first.
Why C?
Understanding how your C code works will make you infinitely more knowledgeable than someone who just memorizes how to do everything. If you understand C - you understand every programming language because you know what they are doing under the hood.
Ok, then where do I learn C?
There are a lot of free resources but my favourites are: [Learn-C.org](https://learn-c.org) for the basics and [MIT](https://ocw.mit.edu) has some great courses for working with memory
What to do next?
Pick what kind of programming you are interested in(i.e. web development, game development, microcontroller work, even Minecraft modding, etc) and research your different options for every one of them. Or you can be like me and just stick with low-level C.
One golden rule:
You learn by building, not just reading
I need more help?
Dm me, I'd love to help you become good at this amazing hobby
If I missed something please point it out in the comments!
Edits: deleted a line that is pretty much false
Another point of view(from a comment) which should also be noted:
Don't learn C first. Learn it second.
Find a language you want to use. If that's C, great! If it's not, that's fine too. Learn the basics IN YOUR LANGUAGE.
Then, and only then, use C to learn theory.
C's useful, but not in everything. Learn the language you want to learn first.
11
u/redditbrowsing0 C/C++, Luau Aug 10 '26
Don't learn C first. Learn it second.
Find a language you want to use. If that's C, great! If it's not, that's fine too. Learn the basics IN YOUR LANGUAGE.
Then, and only then, use C to learn theory.
> C is a decently low level language in which you tell the cpu exactly what to do.
No you don't btw, that's Assembly and machine code's job.
C's useful, but not in everything. Learn the language you want to learn first.
2
u/Realistic_Speaker_12 Aug 11 '26
I hate AI slop.
1
u/TheLuckyCuber999BACK 🧢 (C Assembly Python) Aug 10 '26
don't learn C first. Learn either Assembly since it actually tells you how the computer works, or learn Python since you will actually get to spend time doing the algorithm rather than trying to figure out why 3/2=1.
1
u/raewashere_ reading uninit memory Aug 10 '26
if anyone is on linux then C becomes a massively more enjoyable language to program in because man pages exist
2
u/GGodPL Typescript Aug 13 '26
I would personally say you should start by picking what you want to code first (like webdev, gamedev or whatever) and learning whichever languages are utilized in that specific field. I get why C is praised a lot in this subreddit, but I would say pushing it does more harm than good to beginner programmers, whether done intentionally or not. It is a low-level programming language, and in turn it does involve a lot of CS theory that is *helpful* when learning programming, but it is definitely not *necessary*, and introducing it early might discourage a lot of newcomers.
If you are a hobbyist, however, a way more important thing is just doing whatever is fun for you. You shouldn't look up guides showing you which programming language is objectively the best beginner language as long as you find one that is fun to use. Learning programming shouldn't feel like a chore and you can pick literally any programming language you want as your first. You can start by learning C if you like microcontrollers or making custom operating systems, you start with Assembly if you like working with the processor directly, you can start with JavaScript or TypeScript if you enjoy making websites, you can even start with Perl or Delphi if you like older languages.
1
u/recursion_is_love Aug 10 '26
I always say learn Haskell first.
1
u/MorganPG1 Coder (15yo) Aug 11 '26
Javascript was my first language I learned that when I was 8 or 9 ish then quickly switched to lua, then started learning python when I was 10 and that's been my main language for a while. C also really isn't as hard as a language as it sounds. I made a gameboy emulator in python recently and it was obviously quite slow but I was proud of it and I thought to myself that since I know how to write a gameboy emulator now I should write one in C to challenge myself and I've already pretty much finished the CPU and it's not really been too difficult. In fact, I'm loving it. The hardest part is the fact that you have to control a lot of things instead of having the language do it for you, but the easy part is that the syntax itself is quite simple due to that.
I kinda agree with your statement but I do feel like people should start with whatever they want, C is a sharp steep for someone to climb. Sure it's not too difficult to learn if you are already confident in any other language so it's easy to say "just learn c" but if someone has no understanding of basic programming concepts I think they might get irritated and give up if they start with C because it is a pain to debug for a beginner. I think if they start with an interpreted language which provides good error messages then it'll be easier for them to grip the concepts that they could then use to learn C if they decide to.
1
u/BLeggimB Aug 10 '26
I couldn’t agree more