Read the source code, it will make you learn a lot

Source: Internet
Author: User

Read the source code, it will make you learn a lot
1. Let you know how others implement a common function
2. Let you know how others organize your code structure
In general, open source code has a lot of excellent design and function of the implementation of methods and ideas can be borrowed;
Read the source, can feel the various magical objects and methods are intertwined, to form a large or interesting function,
It is very important for me to make a reference for my own development.

Note: The first time is generally to understand the code flow, especially the main process, the correct process;
And then analyze how the exception process is handled.
Then several times to continue to study the implementation of the logic and details, such as the design of the method, the design of the class and so on;
It is recommended to read the source of Lucene (simply write a demo to practical it, and then read its source code, to find out what you want to know);

Read the source code, it will make you learn a lot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.