当前位置:网站首页>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 .
边栏推荐
- Actual combat simulation │ JWT login authentication
- Decryption function calculates "task state and lifecycle management" of asynchronous task capability
- 关于联邦学习和激励的相关概念(1)
- Pointnet / pointnet++ point cloud data set processing and training
- 1005 spell it right (20 points) (pat a)
- HMM hidden Markov model and code implementation
- 1011 World Cup betting (20 points) (pat a)
- 1002. A+b for Polynomials (25) (PAT class a)
- 一文搞懂Go语言中文件的读写与创建
- kotlin 基本数据类型
猜你喜欢

Detailed explanation of Audi EDI invoice message

What are the consequences of closing the read / write channel?

应用实践 | 蜀海供应链基于 Apache Doris 的数据中台建设

Employment prospects and current situation of Internet of things application technology

C # better operation mongodb database

English grammar_ Noun - use

Several methods of online database migration

Cbcgptabwnd control used by BCG (equivalent to MFC TabControl)

紫光展锐完成全球首个 5G R17 IoT NTN 卫星物联网上星实测

Optimization cases of complex factor calculation: deep imbalance, buying and selling pressure index, volatility calculation
随机推荐
[graduation season] green ant new fermented grains wine, red mud small stove. If it snows late, can you drink a cup?
Talking about cookies of client storage technology
C # better operation mongodb database
Multi table operation inner join query
Multi table operation - external connection query
Kotlin cycle control
English grammar_ Noun - use
公司要上监控,Zabbix 和 Prometheus 怎么选?这么选准没错!
c# .net mvc 使用百度Ueditor富文本框上传文件(图片,视频等)
关于联邦学习和激励的相关概念(1)
BCG 使用之新建向导效果
On communication bus arbitration mechanism and network flow control from the perspective of real-time application
Niuke Xiaobai monthly race 7 I new Microsoft Office Word document
Small hair cat Internet of things platform construction and application model
Key rendering paths for performance optimization
1003 emergency (25 points) (PAT class a)
HDU 6440 2018 Chinese college student program design network competition
Find the nth power of 2
黑马程序员-软件测试--08阶段2-linux和数据库-23-30-进程端口相关,修改文件权限,端口号信息的获取,程序和进程相关操作,linux命令案例
2022 Health Exhibition, Beijing Health Expo, China Health Exhibition, great health exhibition November 13