当前位置:网站首页>Six stones programming: about code, there are six triumphs

Six stones programming: about code, there are six triumphs

2022-07-04 20:21:00 Liu Kunpeng

   I am often proud of my code . Why proud ? Of course, I feel good . I feel good , In fact, it is also compared . So I thought carefully , Summed up six complacency :

  • Clean up useless code

   These codes ( With comments ) No one uses it , It's a waste of energy to keep it .

   Someone asked , What day do I need to refer to ? Now there is version management , Just check it out .

  • Standard naming

   By naming , Express the meaning accurately and clearly , It's not easy . Thanks to my language and vocabulary expertise , At this point, I am far superior to others .

  • alignment

   Alignment code , It is the unique proposition of six stone programming . By aligning , The code becomes neat and beautiful , Feast for the eyes .

  • Get rid of weird code

   What is weird code ? There is no basis 、 source , There's no reason , It may be the code to solve a problem . such as : Inexplicably added a value ( Such as 0.25), Or multiply by a coefficient , Or a piece of code that deals with a particular situation .

  • Merge code

   I often add parameters , Merge similar code . In this way, the amount of code can be reduced , Feel a lot , Actually less than expected . The key is to avoid weird mistakes , One modification is all correct .

  • Use technique

   To solve the problem , The use of other people almost unexpected ( Refers to or participates in related work ) The technique of . Of course, I am very proud .

原网站

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