当前位置:网站首页>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
边栏推荐
- MySQL之函数
- AtCoder Beginner Contest 254【VP记录】
- FFT 学习笔记(自认为详细)
- Solve the problem of reading Chinese garbled code in sqlserver connection database
- About the slmgr command
- Calculate sha256 value of data or file based on crypto++
- 18. (ArcGIS API for JS) ArcGIS API for JS point collection (sketchviewmodel)
- 硬件及接口学习总结
- 7.5 simulation summary
- FFmpeg学习——核心模块
猜你喜欢

FFMPEG关键结构体——AVFrame

MySql——CRUD

如何利用Flutter框架开发运行小程序

Detailed explanation of APP functions of door-to-door appointment service

Mysql - CRUD

Key structure of ffmpeg -- AVCodecContext

How to solve the problems caused by the import process of ecology9.0

Multithreading and high concurrency (8) -- summarize AQS shared lock from countdownlatch (punch in for the third anniversary)

How much do you know about the bank deposit business that software test engineers must know?

GD32F4xx uIP协议栈移植记录
随机推荐
Knowledge about the memory size occupied by the structure
SQLServer连接数据库读取中文乱码问题解决
提升工作效率工具:SQL批量生成工具思想
如何利用Flutter框架开发运行小程序
Problems encountered in the database
7.5 simulation summary
MySql——CRUD
FPGA内部硬件结构与代码的关系
时区的区别及go语言的time库
【EI会议分享】2022年第三届智能制造与自动化前沿国际会议(CFIMA 2022)
About the slmgr command
USB Interface USB protocol
NSSA area where OSPF is configured for Huawei equipment
7.5 decorator
什么叫做信息安全?包含哪些内容?与网络安全有什么区别?
【DesignMode】装饰者模式(Decorator pattern)
Location based mobile terminal network video exploration app system documents + foreign language translation and original text + guidance records (8 weeks) + PPT + review + project source code
Mathematical model Lotka Volterra
多线程与高并发(8)—— 从CountDownLatch总结AQS共享锁(三周年打卡)
[noi simulation] Anaid's tree (Mobius inversion, exponential generating function, Ehrlich sieve, virtual tree)