当前位置:网站首页>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

  1. 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 .

  2. 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 , Tested

  3. How to write a program to make CPU The usage rate of 50%?

To be changed ~

Reference resources

原网站

版权声明
本文为[It rained and windy last night]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060017122894.html