Several local project to build a practice to learn to share tips

I. Background

In the actual development process, we do not understand the use of a class, we write directly in the company in the project?

In the development process, we want to compare the performance of candidate framework, written directly in the company's project?

After many cases are not suitable for the project in the company in writing, or re-written to be sure the company project.

And we hope it can be saved, or you can continue to enrich the future look back, swollen do?

 

Second, the method

2.1 Create a private git write some demo project

Create a private project, you can put the experimental code, the class would like to study, here to write a single test to study.

You can add a variety of jar package, such as learning mokito, learning Orika, or even spring, dubbo can create a package or sub-module demo to learn.

This is also the permanent preservation, such as writing an example of a Stream, the latter forget, or want to experiment never used features found directly before StreamTest class, continue to write.

2.2 tutoris fork own additions and deletions to the local

Internet has a an open source java projects involving all aspects of knowledge, you can fork into their warehouse, add or delete modified.

https://github.com/eugenp/tutorials

2.3 If you are not familiar with the usage of a class

Sometimes too lazy to write demo, simply want to know the common usage, can be used codota search.

Common less common to almost all can be found, they are well-known open source projects on the usage of these classes, fabulous.

https://www.codota.com/code

 

2.4 Development Process jar package pulls the underlying source code, or common techniques usually pull stack into local source

Sometimes it is time to think deeper understanding "Why did this" when.

Two ideas,

One is the development and debugging time, into the jar package, IDEA prompts you to download the source code, you choose to download, and then there are annotated source code easier for you to understand, and can break point, observe the call stack, there is a great help for study and research.

Such as the study of a jar package, then the above points into prompt you to "Download Source"

You click on, download the source code of a jar package

Also here

You can also directly download the maven option card

 

Another time is usually directly pulled open source projects to the local, specialized unit tests run a class. Or debug run its demo usage.

For example dubbo source, you can take an issue to study, we can also see some of the source code to guide the research.

 

If you think this article has helped you, thumbs welcome, welcome attention to me if there is supplementary to welcome the exchange of comments, I will try to create more and better articles.

Welcome to another planet my knowledge, knowledge Planet ID: 15165241 can talk about.

CSDN marked from the time of application https://t.zsxq.com/Z3bAiea.

 

 

 

Published 379 original articles · won praise 862 · Views 1.32 million +

Guess you like

Origin blog.csdn.net/w605283073/article/details/90760362