r/CodingForBeginners • u/death-bychocolate19 • 10d 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
11
Upvotes
3
u/BranchLatter4294 10d ago
The language is not that important. Most projects use several languages. Just stick with it and practice.
3
u/hippodribble 10d ago
To learn about computing, probably C.
To explore a dataset, then a Python REPL is great.
2
u/KuKu_ab 10d 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 10d ago
python i better to start off as it gives basic taste of every coding language in an easy way
2
u/[deleted] 10d 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 10d 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 10d 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 10d 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
u/tenbeadnecklace 10d ago
c is a simpler language than python, harder to use properly though
1
u/Great-Use-3149 10d 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 10d 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 10d 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
u/Turbulent-Hair3289 10d ago
C (I hate python its SOOOOOOOOO different than everything else)
1
u/Elon3Musk40 10d ago
Python,simple, with a short learning curve
1
u/Tony1Rice 8d 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/Fantastic-Work-6769 8d ago
Restarting repeatedly is the real obstacle and python usually helps because small programs produce visible results early enough to keep momentum through the diffult middile weeks. Bootdev could help provide the structure that keeps a fresh start on track though any single beginner course finished fully also does the job
1
u/Still_Membership2640 3d 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 10d 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 10d 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 ?