当前位置:网站首页>Reading notes of the beauty of programming
Reading notes of the beauty of programming
2022-07-06 00:22:00 【It rained and windy last night】
Preface
Text
Reading progress
P12
Introduction
So why The manhole cover of the sewer is round ?
Online answers : a. If it is square , Boring man , It's possible to pick up the manhole cover , Throw it diagonally .b. Because the hole at the bottom is a cylinder , therefore , The manhole cover is round .Show me the most beautiful program I wrote ?
Sentiment :
a. A function does only one thing , One function should not be able to abstract another function .
b. The ideal situation is zero parameter , If any , Up to three input parameters are allowed , More functions would be silly . Be careful , The identification parameters are ugly ,
c. High readability , Clear logic , High cohesion , Low coupling , TestedHow to write a program to make CPU The usage rate of 50%?
To be changed ~
Reference resources
边栏推荐
- Basic introduction and source code analysis of webrtc threads
- LeetCode 6005. The minimum operand to make an array an alternating array
- 小程序技术优势与产业互联网相结合的分析
- 云呐|固定资产管理系统功能包括哪些?
- What are Yunna's fixed asset management systems?
- Codeforces Round #804 (Div. 2)【比赛记录】
- AtCoder Beginner Contest 258【比赛记录】
- Browser local storage
- 关于slmgr命令的那些事
- Data analysis thinking analysis methods and business knowledge -- analysis methods (II)
猜你喜欢
Mysql - CRUD
FFMPEG关键结构体——AVFrame
Configuring OSPF GR features for Huawei devices
The difference of time zone and the time library of go language
notepad++正則錶達式替換字符串
MySql——CRUD
LeetCode 1598. Folder operation log collector
Key structure of ffmpeg - avformatcontext
云呐|固定资产管理系统功能包括哪些?
18. (ArcGIS API for JS) ArcGIS API for JS point collection (sketchviewmodel)
随机推荐
MySQL之函数
Single source shortest path exercise (I)
[designmode] composite mode
认识提取与显示梅尔谱图的小实验(观察不同y_axis和x_axis的区别)
7.5 simulation summary
Classic CTF topic about FTP protocol
Gavin teacher's perception of transformer live class - rasa project actual combat e-commerce retail customer service intelligent business dialogue robot system behavior analysis and project summary (4
2022.7.5-----leetcode.729
What is information security? What is included? What is the difference with network security?
STM32 configuration after chip replacement and possible errors
USB Interface USB protocol
Leetcode:20220213 week race (less bugs, top 10% 555)
FFMPEG关键结构体——AVFormatContext
MySql——CRUD
[designmode] adapter pattern
Shardingsphere source code analysis
软件测试工程师必会的银行存款业务,你了解多少?
数据分析思维分析方法和业务知识——分析方法(二)
QT -- thread
Date类中日期转成指定字符串出现的问题及解决方法