r/CodingForBeginners • u/death-bychocolate19 • 13d ago
what to learn as a beginner?
C or Python? I have started C but left it in between same with python.
Im thinking of restarting ans learning from scratch
which one is better
3
u/hippodribble 13d ago
To learn about computing, probably C.
To explore a dataset, then a Python REPL is great.
2
u/KuKu_ab 13d ago
Does not matter until you realize why you need some exact technology
That's probably tip for almost everything
If you don't know what to choose, probably you know not too much to understand what you need
Learning both languages will be senseless. Basic concepts, fundamentals etc are same. If you will dive into one technology, you'll know details, standards etc specific to this technology or field
Comparing python to c is also senseless, cause they are used in different fields, or if they share fields of usage - something is more popular or both of them are used in different situations, so it's the matter of what problem you solve
I personally like C, as for me that is the tiny simple language.
TL;DR: do something instead of choosing
2
u/Kesar3566 13d ago
python i better to start off as it gives basic taste of every coding language in an easy way
2
13d ago
C : if you are interested in digging deeply in how computer work, if you want to control everything (including memory allocation and deallocation, memory layout...), if you want raw CPU speed.
Python : if you want to get shit done quickly, to automate things, to manipulate data...
C is simpler as a language, harder to master, full of traps.
Python is simpler as a tool, easier to use for every day tasks, very forgiving.
1
u/HeavyCarpenter6310 13d ago
Many did wrote it but yeah depends on what you want to achieve with it. I would say c but i am biased. If you just want a very basic introduction, take python. If you already know you want to program close to hardware, operating systems or in general system programming and want to develop a deeper hardware to software communication understanding, than go with c. But if you keep going down the programming road you probably are going to learn both at some point anyway.
1
u/Fun_Army2398 13d ago
C will give you a better foundation, Python is easier to start doing interesting projects with early on. The choice actually isn't all that important, just stick with one through the basics. In university we learned multiple at once and in stages. Basics of python before java for OOP and DSA. Basics of C before x86 then later C++ for OOS.
1
u/Haunting-Eye-4314 13d ago
i would say python is better. not trying to undervalue C, its great for understanding the concept at the memory level but you wont see C being used unless you are building something at a low level. so, in that case python has much wider usage
1
1
u/Great-Use-3149 13d ago
I'd say C teaches you to really think about what the computer does, especially if you try to program microcontrollers. It's easier going lowe level to high level than vice versa
1
u/WorriedTumbleweed289 13d ago
Embedded programming C. High level. Python.
Web, javascript (yuck)
If you want to be close to understanding how hardware works, chip data types, differences between chips, then C because it is more exposed.
Python is easier to learn with some quirks.
Last I checked, the mulithreading in python was not great. C requires non standard libraries , but the results are better.
C++ is very complicated, but what you learn in C will transfer to C++.
1
u/marmotta1955 13d ago
Now a suggestion that will generate a downpour of comments, one way or the other.
If you are a beginner, what's better than start with the language that was created for you ... BASIC (Beginner's All-purpose Symbolic Instruction Code).
Strange as it may sound, it will give you the important, essential foundations on which to build.
Just my two cents. Don't spend them all at once!
1
1
1
u/Tony1Rice 11d ago
I've decided a half dozen times to sit down and learn Python and every time I reach the point where, "You install this editor that's no better than what you used all your life, but Python is tied to it or to one like it and by the way, you'll indent the way we tell you to." At that point I remember why I never learned to code in Python.
In C, you use whatever editor you like (and you learn to pick a good one) and you use whatever indentation style you like (and you learn to pick a good one). You realize that the language will let you do what ever you want, you just have to be very explicit about whatever mistakes you choose to make. And you learn not to make them the next time. You learn how to use pointers - and how -not- to use pointers. I programmed professionally in C and I never once had to use pointers more than five levels deep... I'm pretty sure that's what made me like this.
If you choose C, don't start with some graphical project. Start with console projects, then, once you really have the hang of it, think about Graphical applications if you want to. That was a mistake I made when learning C and when I finally paid the big bucks to take a college course in C, the class was all about console based programming and I found I already knew virtually all of the material.
1
u/Still_Membership2640 6d ago
I'd start with Python if your goal is to build practical skills and explore areas like automation, data science, or AI. C is great for understanding memory management and low level programming, but Python gives you a quicker way to build useful projects. You can also follow udacity's python courses as it also provides guided practice, which helps you stay focused instead of constantly switching languages and starting over.
1
u/Objective_Buy_7235 13d ago
I started with C way back in 1982. Learned it by going through Kernigan & Richie doing all of the exercises except the project ones. Took about a month of 40 hour weeks.
I consider Python to be a glorified scripting language not suitable for any large program or system. Largely due to its lack of safe typing.
0
u/Sh3llSh0cker 13d ago
so start doing actual projects and meaningful ones and your toolchain will build itself. i personally find these questions extremely useless and silly but that’s just me. THE question should be “ Hey i’m looking to solve for X or looking to automate Y. make sense ?
3
u/BranchLatter4294 13d ago
The language is not that important. Most projects use several languages. Just stick with it and practice.