Learn how open source library

1. Why learn open source library

  • Learn new skills (frame mode), to enhance their value.
  • Broaden the thinking related fields.
  • Look similar are doing, how we communicate is learning the standard language, the only language of unity, they go to the exchange.
  • Ready to contribute to the open source community, although the leather a bit large, but if one day realized it.

2. How to choose the open source library

  • And their own work or life related to the library, use them only have deep pleasure and motivation. Do not learn, I'm sure the next day you have memories of fragments.
  • The project known to be high, like learning the dialect, how all over the world? ? ? Maturity is higher, just like driving a car has not been tested, as if the dream of traveling around the world is not realistic.

3. Get the open source library

  • Learning open source library can not avoid acquiring open source libraries, but now look at the source code is not recommended for answer any open source library, to give you the source code, you do not know what to see.
  • Download the complete open source library instead download-master.zip, obtained in this way is not only the source code, and test code and modify records. Test code can help to get started, modify records help grasp cause and effect.

4. Learning open source library

4.1 from a third party about this library

  • From the aspects blog or forum about this library, understand the purpose of this library is created, functions, methods and precautions.

4.2 see self-introduction project documentation, the project is the most precise positioning of the project

  • README.md figure it out

4.3 using the method recommended by the project

  • Compile and run, if you can not run, there is no need to read on the.
  • Look at the example, to see how to use this official document, which is standard usage.
  • By breakpoints or abnormal, the process run again.
  • Shielded or modify part of the code, to see whether it can function properly. If the error, see where the error.
  • Code revert

4.4 Unit Testing

  • Unit testing to understand the functions of the program.
  • Unit testing, functional understanding of boundary conditions.

5. Application open source library

5.1 according to their needs using the project

  • Adjust according to their needs project, if you encounter a problem, the first not online, try to solve their own.
  • After resolving relevant forum to confirm whether their own solutions and consistent.

5.2 understand the source

  • At this time, surgery is the source of the time, before this step-source operating, do not feel a little early? ? ?

6. DIY projects

  • At this point the project should modules should already know about it, the core module positioning auxiliary module.
  • Build the project using the source code version (if conditions allow).

Guess you like

Origin www.cnblogs.com/faithlocus/p/12287607.html