How to learn Java?

xiaoxiao2021-03-05  35

I can join my own experience to tell you, I hope to help you, take some detours.

Learning Java is actually rising to how to learn this realm, and in fact, the learning program is also accepting a programming idea. The programming ideas of each language is similar, but some subtle differences brought by language characteristics, such as Interface in Java, you have never met in previous studies. I will tell you a closer to you:

1. We must clear a big direction, that is to say, now the object-oriented programming category. Although artificial intelligence has had a wave (see why Borland has Turbo Prolog), the next 5-10 industry is widely recognized and accepted will be an object-oriented programming.

2. The current most popular object-oriented programming language of the industry is C and Java. So basically lock these two directions. And you can master at the same time.

3. Master the essence characteristics of Java and must know why. For example, Interface and Multi-Thread. Using Interface is a better multi-inheritance model, and multi-thread is an important feature that is designed to language level. To fully understand why INTERFACE is, there are several commonly used programming models with multiple threads.

4. Understanding the characteristics of the language, after, you can try to rise to the design level, after all, the learning language is used. The currently better development model is a self-tail-oriented object-oriented design, plus MVC mode (you can see what I introduced about MVC). First of all, we must find the topmost object (this is often the hardest), then recursively, remember to meet the principle of 7 /- 2 each time, because our short memory is like this. Generally, there is a graphical user interface to start designing from the interface.

5. After you have a basic design model, you can learn some design modes (Design Pattern). This is currently proven to be effective. For example, architecture (Layering layers, PIPE / Filter pipelines or filters), design modes (there are many, such as object pool Object Pool, buffer pool cache, etc.), programming mode (such as copy-on-write). After understanding these modes, there is a good grasp of the overall structure of the system, and academia also tends to be a system that can be combined by various modes. The MT mentioned earlier is actually several models. If you don't spend a lot of time after you master it. Another important area is in parallel and distributed calculations, about 20 species.

6. Next, you can't talk about our paper, the best way is actually practiced. The examples in the general textbooks cannot be considered practical, and they can only make you master the language characteristics. It is not too good to advocate actual project because you have no skilled abilities to integrate various technologies, so you can only be more and more confused. I think a better way is to find some classic examples. Each example is more designed for a programming idea. For example, in my practice, I have learned a very classic example is the use of Java. Hotdraw ( From SMALLTALK, you can use rolemodel or hotdraw to find it on the search engine, I can't remember it. It seems that rolemodel.com is a website, with original code and some basic documents. Another source can be www.umlchina.com is a nice document base. From HotDraw I learned what is Framework, and how to construct the way with rolemodel so I can apply to other places. By the way, this example you will never feel small, just feel big, and he is still a real commercial Framework.

7. In conjunction with the design pattern you have learned, you can understand these classic examples. And you can use him to achieve some simple systems. If you can further modify him, find out where you feel that you can improve performance, add your own design, then you will get a hierarchy, and you will really feel something. 8. It seems that there is no relationship with Java, in fact, we have long-happened to the real learning area from a simple learning language. Learning technology is there is no end, you can learn the first language may take half a year, and every language should not be more than two months later. Otherwise, you will feel that the learning language is a burden, it is painful.

9. Learning is for use, in order to make your program value, it will be relaxed to grasp this principle.

There is no 10 o'clock, because there is no thing is perfect, haha ​​~~.

Welcome to reprint in the case of retaining http://www.javajia.com!

转载请注明原文地址:https://www.9cbs.com/read-33431.html

New Post(0)