当前位置:网站首页>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 .
边栏推荐
- 什么叫内卷?
- Chrome开发工具:VMxxx文件是什么鬼
- C server log module
- BCG 使用之CBCGPTabWnd控件(相当于MFC TabControl)
- Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
- New wizard effect used by BCG
- Pointnet / pointnet++ point cloud data set processing and training
- Chrome development tool: what the hell is vmxxx file
- Write it down once Net analysis of thread burst height of an industrial control data acquisition platform
- BCG 使用之CBCGPProgressDlg进度条使用
猜你喜欢
C # use stopwatch to measure the running time of the program
Neural network IOT platform construction (IOT platform construction practical tutorial)
华为nova 10系列支持应用安全检测功能 筑牢手机安全防火墙
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
Qt编写物联网管理平台38-多种数据库支持
Dynamic memory management
Development and construction of DFI ecological NFT mobile mining system
BCG 使用之CBCGPProgressDlg进度条使用
做社交媒体营销应该注意些什么?Shopline卖家的成功秘笈在这里!
C server log module
随机推荐
Kotlin basic data type
Integritee通过XCM集成至Moonriver,为其生态系统带来企业级隐私解决方案
Wireshark network packet capture
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
更强的 JsonPath 兼容性及性能测试之2022版(Snack3,Fastjson2,jayway.jsonpath)
【毕业季】绿蚁新醅酒,红泥小火炉。晚来天欲雪,能饮一杯无?
多表操作-内连接查询
Thinking on demand development
Pythagorean number law (any three numbers can meet the conditions of Pythagorean theorem)
Detailed explanation of Audi EDI invoice message
Free soldier
92. (cesium chapter) cesium building layering
凌云出海记 | 沐融科技&华为云:打造非洲金融SaaS解决方案样板
What financial products can you buy with a deposit of 100000 yuan?
Dark horse programmer - software testing - stage 07 2-linux and database -09-24-linux command learning steps, wildcards, absolute paths, relative paths, common commands for files and directories, file
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?
What does the neural network Internet of things mean? Popular explanation
[QNX Hypervisor 2.2用户手册]6.3.1 工厂页和控制页
kotlin 条件控制
1011 World Cup betting (20 points) (pat a)