Which programming language (Java, C++) should I learn first?

This issue has always been a very controversial issue at the entry stage. Anyway, every time seniors go online to find out what programming language a novice should learn, there will be a variety of recommendations, n multi-language, n multi-recommendation, and novices will listen to it later Said this language is suitable for novices, so I learned this language. After a while, some people said that xx language is rubbish, weak, and it is useless to learn it. I started to recommend you xxx language, so novices started to learn this language again. I didn't understand any languages, I lost a lot of time, my enthusiasm was exhausted, I didn't learn anything, and I started to be dissatisfied with programming.

To solve this problem, we must first understand a fundamental problem, how to choose a programming language suitable for entry?

I recommend considering it from the perspective of difficulty. This language should be easy to learn, interesting, and must have a certain degree of enthusiasm. Only with enthusiasm can more people communicate and discuss together, which will also help you in your learning journey. Your studies are difficult.

Let’s briefly analyze the ease and difficulty of the two:

1. JAVA

Difficulty: ★ ★ ★

Popularity: ★ ★ ★ ★ ★

Founded in: 1995

What Java can do: Android and IOS application development, video game development, desktop GUI, software development, etc.;

Employment salary: The editor learned from major recruitment platforms that the average salary of java development engineers in Beijing is: 18,690/month. This data is taken from 40,524 samples.

Java is an old-fashioned language, but due to the large number of relevant development talents in the market, the competition is fierce, and the salary tends to be stable.

1.1 Advantages of Java:

  • Java developers are in high demand: This one is based on statistics. JAVA is the most in demand among many languages;
  • Evolutionary language: First of all, C++ is optimized based on C language, and Java is optimized. Moreover, many functions, such as lambda, have been added to this platform.
  • Android application development: Google's Android mobile platform is the world's number one mobile platform, and the main language used by Android application developers is Java;

1.2. Disadvantages of Java:

  • Uses a lot of memory: Java uses more memory than C++ so the memory footprint is larger.
  • Learning curve: This refers to the fact that although Java is not the easiest language to get started with, it is not the most difficult either.
  • Slow startup time: Anyone who has written Android applications in java should know this. The same code is a very slow thing to start in the emulator.

Two, C++

Difficulty: ★★★★☆

Popularity: ★★★★☆

Founded in: 1983

C++ is currently considered the best object-oriented programming language for writing large program applications. C++ is an upgraded version of C language;

What C++ is used for: search engines, software development, operating systems, video games, etc.

Employment salary: The starting salary of a C++ development engineer is generally around 10,000 yuan, and the salary of a senior engineer can reach more than 20,000 yuan.

2.1. Advantages of C++:

  • After mastering C++ proficiently, you can become a leader in every position. Using C/C++ helps us understand other programming languages ​​better. For example, how Java or Python performs memory management and how to deal with defects;
  • Can adjust performance: C++ can allow you to adjust the performance of your application and affect the performance of all computers. It is not very friendly to write than Java, but we can also use C++ to do many things;

2.2. Disadvantages of C++:

Difficulty in learning: C++ is relatively difficult to learn, but if we can use it fluently, it will far exceed other programmers;

Huge size: C++ can be called huge, most of its functions interact with each other in a machine complex way. No developer can use all provided components. But it will take a lot of time to pick and choose subcomponents of your program.

3. Conclusion

If you want to learn everything, you can learn c++ first. C++ can be said to be the predecessor of Java, but in comparison, c++ is more difficult and annoying, and Java is simpler.

But I don’t think it’s necessary. Just learn Java directly. It’s easier to find a job by learning Java. With the same salary, it’s better to choose simple ones. There’s no need to get rid of those hairs.

Shangxuetang brings a brand-new Java300 course to students! Java zero-basic self-study Java must-have high-quality tutorial

You can also watch the Java video tutorial first to see if it is easy to learn and if you can learn it.

Guess you like

Origin blog.csdn.net/lghtdw1314/article/details/122855312