当前位置:网站首页>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 .
边栏推荐
- Neural network IOT platform construction (IOT platform construction practical tutorial)
- Process of manually encrypt the mass-producing firmware and programming ESP devices
- TCP两次挥手,你见过吗?那四次握手呢?
- Oracle database, numbers Force 2 decimal places to display-Alibaba Cloud
- 关于联邦学习和激励的相关概念(1)
- Chrome开发工具:VMxxx文件是什么鬼
- 泰山OFFICE技术讲座:关于背景(底纹和高亮)的顺序问题
- Free soldier
- 1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
- 如何让你的小游戏适配不同尺寸的手机屏幕
猜你喜欢
关于联邦学习和激励的相关概念(1)
Pythagorean number law (any three numbers can meet the conditions of Pythagorean theorem)
解密函数计算异步任务能力之「任务的状态及生命周期管理」
CANN算子:利用迭代器高效实现Tensor数据切割分块处理
In the first month of its launch, the tourist praise rate of this campsite was as high as 99.9%! How did he do it?
Actual combat simulation │ JWT login authentication
什么叫内卷?
如何让你的小游戏适配不同尺寸的手机屏幕
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
C # use stopwatch to measure the running time of the program
随机推荐
【毕业季】绿蚁新醅酒,红泥小火炉。晚来天欲雪,能饮一杯无?
需求开发思考
Data set division
In the first month of its launch, the tourist praise rate of this campsite was as high as 99.9%! How did he do it?
Anhui Zhong'an online culture and tourism channel launched a series of financial media products of "follow the small editor to visit Anhui"
c# . Net MVC uses Baidu ueditor rich text box to upload files (pictures, videos, etc.)
数据集划分
Application practice | Shuhai supply chain construction of data center based on Apache Doris
15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
New wizard effect used by BCG
华为云云商店首页 Banner 资源位申请
泰山OFFICE技术讲座:关于背景(底纹和高亮)的顺序问题
复杂因子计算优化案例:深度不平衡、买卖压力指标、波动率计算
凌云出海记 | 文华在线&华为云:打造非洲智慧教学新方案
kotlin 基本数据类型
多表操作-内连接查询
Huawei cloud store homepage banner resource bit application
Free soldier
[problem] Druid reports exception SQL injection violation, part always true condition not allow solution
Matrix flip (array simulation)