How can I learn Java well? The monthly salary of 35K Ali P9 programmers gave such advice!

I am learning the Java computer language and intend to be my future development direction. Unfortunately, you have encountered more confusing but unsolvable problems during your study. You must clarify the following very important issues and master them relatively correctly and suitable for you Learn the method of programming, so as to solve the puzzles for yourself and continuously improve yourself, and finally reach a basic standard for entry of most companies.

First of all, you have to know whether your real goal of learning Java is clear and whether the idea of ​​learning Java is mature. Many people may dismiss this issue. With my years of experience in Java development and most of the people engaged in Java development that I have contacted at work, I will eventually be able to learn the Java language well, and most people will take Java as their own future. This work is the goal. Once this goal is clear, it will give you endless motivation and pressure. Without motivation and pressure, people will have various excuses to shrink or even give up when they encounter difficulties.

Secondly, after you have a very clear goal, and in the process of studying hard for it, you must be clear about the basic entry requirements of most companies for Java developers and what common technologies need to be mastered. Of course, there are some differences in the requirements of different companies, but for a beginner to Java, you should usually know that the following are the basic requirements of most companies for junior programmers. You can review your own technical level from the following technical aspects.

1. Any Java development direction must have a firm grasp of the basic core theoretical knowledge and practical technology of Java SE. From a Java perspective, no matter what kind of so-called advanced Java technology is based on the core of Java SE, such as Jsp dynamic web technology , Servlet Java EE standard core controller, freemarker template technology, MVC framework (Spring [mainstream IOC container], Struts2), or ORM middleware mybatis, hibernate, openjpa, all based on Java SE core technology, and Java SE The core technology, the most important thing is the Java object-oriented core programming design ideas and implementation, that is, the three major characteristics of Java object-oriented language (encapsulation, inheritance, polymorphism), if there are big problems mastered here, use Java later Language design and coding and learning follow-up Java web and various Java frameworks will not go smoothly, so a lot of work is needed in this place, and more time should be spent on learning and understanding this part and a lot of code practice. There are many training institutions. In order to attract students and give them a short-term sense of accomplishment, they will spend a certain amount of time (or even a relatively long time) explaining part of the GUI, so that you can make a graphical interface or a mini game, based on my years of work experience. , This is almost unnecessary. Because this part of the content is almost unusable in 99% of Java development companies, there is no need to spend time learning. Therefore, if a Java practitioner cannot master the core theories and foundations of Java SE well and apply them proficiently, you will be blocked by the entry barriers of the enterprise for the first time. I have repeatedly emphasized how important Java SE is. Once you learn Java SE well, learning anything in the future will be very easy.

2. A real enterprise-level Java project is 100% that requires enterprise data processing, and it is an extremely important piece, because recording everything is reflected in the computer as data, and the most basic and commonly used software equipment for permanent storage of data is Database, then the operation of the database is particularly important. A qualified Java programmer even has such a metaphor: "If you have a firm grasp of the core technology of Java SE, you are like Monkey King having a somersault cloud, and having a very good database technology It’s like having a Wishful Golden Cudgel again, so you have the ability to make a big noise. If you are interested in searching for information, the PL/SQL database development language ranking is often in the top 20, and many people have mastered PL/ SQL can find high-paying jobs everywhere. Of course, if you talk about database operations from a Java perspective, you must have an in-depth understanding and mastery and proficiency in using JDBC. In the later stage, whatever middleware you use is similar to hibernate and mybatis ORM database operations, it is a encapsulation of JDBC. , You will not be able to reach the second entry threshold for enterprises.

3. Speaking of Java enterprise-level development, usually web applications, there is a topic that cannot be avoided, that is, front-end development. This is naturally the mastery of JS. In fact, this part is similar to Java in terms of logic and complexity. There is a certain gap, which means that some technologies are not difficult to master, but they must be paid full attention, because Java web projects, especially the background management application JS implementation of the enterprise management system or the JS framework construction management interface and the realization of asynchronous request processing data are very For heavy tasks, one to two thousand lines of code in a JS file are common. If it is data processing, the JS framework is of course jQuery and related jQuery plug-ins, which should not be ignored, and you must work hard to master it.

Fourth, the commonly used framework for enterprise-level Java projects, I personally think that it is not difficult to master this part of the content and technical application. As long as you have a firm grasp of the core Java technology, you can learn from the Servlet Java EE standard controller. It's not difficult. It's just a tool for building Java Web projects. Use it a few times and you will naturally master it slowly.

By the way, I’m currently working as a Java developer. If you encounter any questions about learning methods, learning routes, learning efficiency, etc. during the process of getting started learning Java, you can apply to join my Java novice exchange group: 798844620 , there are a lot of beginners who are learning Java technology. You can also come directly to me if you lack basic introductory video tutorials. I have the latest Java basics and intensive video tutorials. The group file also contains me doing Java technology. Some study manuals, interview questions, development tools, PDF documents, books and tutorials compiled over a period of time.

After you know the basic entry requirements of the above companies and what is important, and you have to work hard to learn the skills you have mastered, you should know how to find a learning method that suits you so that you do not take detours.

1 No matter how high a level of programmer is, in what kind of company, you must be a programmer with a code specification, otherwise you will be incompatible with your personality or even be fired by your boss. India is called the Kingdom of Engineers because India now has programming courses in elementary schools and strictly regulates programming standards. Software development is the product of teamwork. It must be a whole, which requires the code to be unified and standardized. Here are a few words (but many people don’t pay attention and get scolded). Identifier naming must be standardized. There must be standard comments, reasonable line breaks, accurate package naming, and reuse of functions. No matter how simple it is, it must be encapsulated as a class or method. The redundant code must be deleted. Do not use static variables and methods indiscriminately. Do not nest too many loops. If you don’t pay attention to this at first, you will pay the price in the future. I have taken a long detour that you didn't know.

2 Don't blindly imitate the code. In many training institutions or teachers, in order to find balance and vanity for you who are already very problematic, they often tell you to type in my code first, and then I will tell you that this teacher is cheating you , As the saying goes: Do it for the sake of reason, you almost know nothing about it and blindly imitate it, even if you type it out, what is the gain? If you encounter such a problem, you should follow the steps below to solve it. First think about what I want to do, what is the final result, what knowledge points I have learned may be used, clear my ideas, find possible problems, determine the implementation sequence and preliminary plans, and write a series of notes to indicate What to do at each step, and then try to do it again. If you encounter a problem in the implementation, you will think of multiple ways to solve the problem, so that you will accumulate the ability to analyze the requirements, the ability to design, and the ability to determine multiple ways to solve the problem. You can make progress. Don't imitate the code blindly.

3 Make it clear that the key points do not cover everything. It is a taboo to learn. In most Java development, we will only use less than 20% of the most important common technologies of Java and solve 80% of the problems encountered by enterprise development, so you don’t need any technology. Dot use the same time to learn and practice. For example, you spent more than 20 days on GUI to satisfy your vanity. You have to use multiple for loops to show off your logical ability. Wake up, you just need to be firm Master the core object-oriented program analysis and design, commonly used SE libraries, understand multi-threading, proficiently use IO to read and write, JBDC must... Remember.

4 Think first, check again, ask three times, and do it later. I think this is a better way to learn Java and any computer programming language. The so-called first thinking is to make yourself think carefully when you encounter a problem, think about what is the problem, how to solve it, and why it can’t be solved. It’s best to determine the initial idea and finally When you can’t figure it out, look up the information again (you can use any carrier method); if the problem is not solved, ask the teacher, ask the classmates, ask the Java pioneers to give you ideas and give you inspiration to help you solve the problem. Hesitate to do it now, you have gained a lot and expanded your circle of friends.

5 Find someone who can promote you and someone who really helps you. Learning is boring. A person is always lonely. You'd better have a partner who can stimulate you to make progress. If you are strong, I will be stronger than you. People who really help you often do not always praise If your person often points out problems and criticizes you when learning from you, then he must be your mentor and helpful friend.

6 The amount of code, the amount of code, this must be guaranteed, don’t distract you from the flowers and greens in life, since you regard it as your future goal, please be worthy of it, type a lot of code, practice makes perfect, Java SE is less than With 50,000 lines of code, you still want to be a programmer. There are no such cheap things in the world. You want to go to the West before eating three days of vegetarianism. Stop dreaming.

Okay, enough to say, if you can fully understand what I said above and think about it and look at yourself, give yourself a new position, stick to it, you will have hope, I am waiting for you in the battlefield of Java...

Guess you like

Origin blog.csdn.net/weixin_46898270/article/details/108703153