Disclaimer: This problem has plagued me for a long time, and today I found the answer. Thanks to the link https://www.zhihu.com/question/24240982, the great god @Tony he answer.
Tony He
Links: https://www.zhihu.com/question/24240982/answer/27138388
Source: Know
Copyright belongs to the author, please contact the author for authorization.
When I see you write "What's--what?"I knew the reason for your confusion--The learning method is wrong。
go to the bookstore to find Java-related books, you can find a bunch! Buy them back and read it all over again, it's obviously unrealistic. Even if you do that, you also find that you can not do anything, and the process is extremely painful and confused.
--------------------------------------------------------------------------------------------------------------- ------
What is the effective way to learn?
The Greatdeputy Commander LinOnce said--studying Chairman Mao's writings towith the problem study, ingenious, learn to use a combination, emergency first learn, stand see shadow, in the word "with" hard work。
Deputy Commander Lin is wise! Decades ago, we pointed out the essence of learning it technology.
There is a long-established fallacy of the education sector-"If you want to let students drink a cup of water, the teacher first must have a bucket of water", in fact, the teacher does not need to have a bucket of water, and even a glass of water do not need, the teacher to do is-the students are very hungry, and then tell them where there is They will quickly rush to the place where there is water to fill themselves.
Do you understand what I'm going to say? First you have to have an application.Demand, based on this demand you will find the answer, find an answer, solve a problem, your study will become very effective, and you learn the knowledge is the most practical knowledge.
The reason you can't touch your head is because you don't have the need to learn a technology at all.
Give me some chestnuts.
Many years ago, I second day, wanted to display a drop-down menu on the screen (with QBasic), in order to perform a set of operations more than once, I kept copying and pasting a piece of code, next to a primary school six grade "master" looked at a glance and said: "Why don't you use the function?" "," What is a function? "That afternoon I learned the function of this great thing, the fun is too cool, no longer copy and paste." I remember this thing all my life--functions are pre-defined function blocks, passing information through parameters, returning results by return values, using functions to implement code reuse in a program, reducing the number of code, and improving code maintainability ...Imagine, if you read this text from the beginning, can you tell what the function is for?
Another example is that many schools have a single set of database courses, and students are very difficult to generate perceptual knowledge of the database. The ideal way of teaching is that they have a certain degree of programming experience, in a program to create the need to store, query the data needs to bring in the database: from the user interface to get data, to insert the database, began to learn "insert INTO ...", to delete data, start learning " Delete from ... ", found that the query speed is too slow, I built an index, afraid of data does not meet the requirements, I built a constraint, to extract data from multiple tables, we began to learn join ....
Summary : Learning knowledge to first give oneself an application goal, in the application has produced the question, then according to the question to find the answer, when the answer accumulates more, your knowledge will slowly form the system, this kind of learning method, called inductive method .
The process of finding the answer is undoubtedly painful, some people will say that this way is too slow to learn, not solid, some of the surface is not covered. No matter, you have a problem you can not solve the teacher, teachers will let you less detours.
The benefits of this learning are:
- You can test whether you really have a knowledge by observing whether the problem is solved.
- This learning process exercises your ability to find solutions based on problems and is one of the most important abilities of programmers.
- The knowledge that you learn is the most practical, the most commonly used, the most urgent knowledge.
--------------------------------------------------------------------------------------------------------------- ------
Before supplementing the Java Learning Route issue, it is stated that the last Java project has been around for 8 years now, and since then has been addicted to the gentle village of C #, so if there are inaccuracies in the Java narrative, or biased, ask the great gods to criticize and advise.
Java, a cross-platform core selling point (some say this is a joke), basically can be determined to date, Java is in addition to C and C + + operating environment is one of the most rich language, this is true, C # is almost.
Java's ecosystem is more complete, from the client (desktop and mobile), to the server, to the middleware, can be developed in Java.
1. Client Side
On the client side, Java can be used to develop desktop and mobile applications (such as Android), and early-life non-Android smartphones can also run Java applications.
2. server Applications
The server is Java's forte, Java can run on Windows, unixlike servers, this is not the case in C #, although C # can also run in the Linux environment, but after all, has not yet become mainstream. C # programs are still most comfortable to run under Windows.
Java The Learning Path
The first stage, as a beginner, is usually just beginning to touch Java is learning "J2SE", the main content includes:
1. settings for the Java development environment
2. How to compile and run Java programs
3. Basic Java Concepts (classes, data types, variables, constants, expressions, functions, loops, branches, common class libraries ...) )
4. Write console programs or GUI programs (such as swing ... )
Basically, at this stage of learning is not too difficult, because the problems involved are confined to Java, the interface is very simple, not difficult to learn.
But starting with Java EE (also known as the "EE"), the Jsp/servlet, Javabeans, EJB, Rmi,webservice, Database, JDBC, and even html/css are almost simultaneous, and the problem is, You have no idea what they have to do, so sad!
So, I'm not suggesting that you start by plunging into these specific technologies and drowning.
Learn Java EE, can also start from the actual, set yourself a project goal, based on this project goal to achieve their learning goals.
In your current situation, I suggest you try to start from a message board, from the user registration, leave a message, the message display begins, you can at least understand:
1. How HTML and CSS implement the interface
2. How to implement client-side interaction with JavaScript, such as checking that the information entered by the user is valid (in fact, the goods have no relationship with Java)
3. How to handle client requests with JSPs
4. How to design a database to store message board information
5. How to access the database in JSP
6. How to query the database and form an HTML page to send to the client.
After the completion of the above phase, you can also try to clone a Sina Weibo, focus on client interaction, how to make the page more beautiful, more user-friendly interface (UX), background processing faster, then you will have to go deep into JavaScript, jquery these, The ability to encode in the background will also be further improved.
And so you can clone a Sina Weibo came out, there is a certain amount of technology and experience to accumulate, and then go deep into some deeper things, such as EJB, WebService and so on ...
If you have extra time, make an Android client for your microblog, the technical side is broad.
You can't find a job if you do all this.
Come here first, not clear in the comments continue to ask questions, but also welcome all the way the big God came to shoot bricks.
PS: Turn to know this answer, is to solve their own confusion, also hope to see this article of the people can clear their direction of study.
Learning Java Encounter bottlenecks, every day foggy what to do?