当前位置:网站首页>Guiding principle - read source code

Guiding principle - read source code

2022-06-25 09:53:00 TowerOs

General principles

  1. Learn about this function module Design patterns
  2. When tracing function calls Parameters passed Input-output model , Capture key data flows
  3. Attention class Context
  4. Understand the function of Participants class
  5. Learn to draw class diagram and sequence diagram Clarify the functions of corresponding classes
  6. Understand all kinds of Coupling correlation
  7. Try to understand The design concept adopted
  8. Always remember The purpose of the function class

For multithreading / Multi process

  1. Grasp Clues to global variables : Such as static,threadlocal, Special data structure
  2. Enter the... Used to understand Multi thread communication tools and multi process communication tools
  3. Focus on C/S Model , Atomic manipulation , Locking mechanism
  4. Jump out Threads Process synchronization operation , from Data model Come and watch from the top , Not by a large number of Sync asynchronous The operation is too complicated to know where to go

in the light of GUI visualization

  1. Focus on Model,View,Control Relationship and role play
  2. Focus on classes and toolkits that serve as linear computing : Reverse search can help you know which classes are responsible for implementing matrix calculation
  3. Focus on Data binding And the observer model
原网站

版权声明
本文为[TowerOs]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200547375480.html

随机推荐