What should I learn first about C and Python? Personally, I think we should consider it this way.
1. When To Learn C Language.
- If you want to develop a long-term coding career, take the professional route, you should learn C.
- Both C & Python are simple in themselves, notice I’m talking about the language itself, which means basic syntax, specification, and so on. But the “cultural background” of the two languages is different.
- Although C is a high-level language, C itself is a general-purpose programming language, and it was designed specifically for professional programmers.
- In fact, it can be seen from the usage. Drivers, microcontrollers, and so on can all be developed in the C language in addition to our familiar applications.
- Therefore, when learning the C language, we should understand some basic computer architecture at the beginning, such as the classic question: how many bytes of int type?
- In short, you need a systematic understanding of how data and computation work in a computer system. At the very least, you need to understand how your program stores and retrieves data in memory so that the entire program runs stably.
- Knowledge and skills need to be relatively systematic if you want to make long-term progress in using the C programming language.
2. When To Learn Python Language.
- If you want to go short, go the app route, you should learn Python of course.
- Python was originally designed for use by researchers. Don’t think too highly of this group, most of the researchers are actually not very good at programming.
- The reason is not that they don’t have the ability, but as below.
- They spend 90% of their time on their own studies, leaving little time for other things.
- Their focus is on how to get results, and they don’t care much about the process of data processing and analysis itself. Because mathematicians and theoretical scientists have proved that it can be used safely.
- Therefore, Python was designed to be easy to use from the beginning.
- Then you have to lighten the load on the programmer, and it will solve a lot of problems for you. For example, memory management (of course, if you go further, you should consider it, but most of the time you don’t need it).
- So that Python users can actually focus more on how to implement their business needs and less on the computer program itself.
- If you want to satisfy your current curiosity and continue using computer programs to implement your playful ideas, Python is a good place to start. This will save you a lot of time and allow you to implement your ideas faster.
3. How To Learn C & Python.
3.1 How To Learn C Language.
- Personally, it may be relatively boring. Because you start in C, then go to C++, and then you have to learn some data structures.
- So if you want to learn C, you’d better learn something like below.
- C++(emphasis on object orientation).
- Data structure (preferably some discrete mathematics, otherwise too abstract to understand).
- Algorithm analysis.
- Principle of Compiler.
- Operating system.
3.2 How To Learn Python Language.
- Python is very easy to learn, below is the list of the knowledge that you should learn.
- Python basic.
- Scientific Computing: Numpy(Scipy).
- Data Analysis: Pandas.
- Machine Learning: Sklearn.
- Deep Learning: PyTorch.