当前位置:网站首页>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 .
边栏推荐
- BCG 使用之CBCGPProgressDlgCtrl进度条使用
- Lingyun going to sea | 10 jump &huawei cloud: jointly help Africa's inclusive financial services
- 1005 spell it right (20 points) (pat a)
- Explicit random number
- 华为nova 10系列支持应用安全检测功能 筑牢手机安全防火墙
- Pytoch learning (4)
- 1007 maximum subsequence sum (25 points) (PAT class a)
- Niuke Xiaobai monthly race 7 I new Microsoft Office Word document
- 记一次 .NET 某工控数据采集平台 线程数 爆高分析
- Cbcgpprogressdlg progress bar used by BCG
猜你喜欢
Creation of JVM family objects
Detailed explanation of Audi EDI invoice message
Ziguang zhanrui completed the first 5g R17 IOT NTN satellite on the Internet of things in the world
Employment prospects of neural network Internet of things application technology [welcome to add]
输入的查询SQL语句,是如何执行的?
c# . Net MVC uses Baidu ueditor rich text box to upload files (pictures, videos, etc.)
Multi table operation - external connection query
Chrome开发工具:VMxxx文件是什么鬼
[Beijing Xunwei] i.mx6ull development board porting Debian file system
Swagger突然发癫
随机推荐
Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
Detailed explanation of Audi EDI invoice message
[Beijing Xunwei] i.mx6ull development board porting Debian file system
1011 World Cup betting (20 points) (pat a)
c# . Net MVC uses Baidu ueditor rich text box to upload files (pictures, videos, etc.)
What should we pay attention to when doing social media marketing? Here is the success secret of shopline sellers!
华为nova 10系列支持应用安全检测功能 筑牢手机安全防火墙
kotlin 基本数据类型
关于联邦学习和激励的相关概念(1)
ACM组合计数入门
Introduction to ACM combination counting
Huawei Nova 10 series supports the application security detection function to build a strong mobile security firewall
1009 product of polynomials (25 points) (PAT class a)
Niuke Xiaobai month race 7 e applese's super ability
输入的查询SQL语句,是如何执行的?
Optimize if code with policy mode [policy mode]
B2B mall system development of electronic components: an example of enabling enterprises to build standardized purchase, sale and inventory processes
Niuke Xiaobai month race 7 F question
Kotlin inheritance
为什么最大速度是光速