当前位置:网站首页>Two small things, feel the gap with the great God
Two small things, feel the gap with the great God
2022-06-11 13:33:00 【Ma Nong turns over】
This is a short passage , Share your feelings about two small things .
1
I wrote a cartoon last year 《 Kangxi couldn't learn binary 》, Describes the development of binary and Boolean algebra , Finally, Shannon discovered the relationship between Boolean algebra and logic circuit , Laid the foundation for the development of computer .
My cartoon science popularization will stop here , It's over .
I am reading the book of Mr. Wu Jun recently 《 Soul of calculation 》, I found that he was telling this story too , Here comes curiosity , Take a close look at .
The story is similar , Nothing new , But the following summary has put forward a refreshing point of view :
Shannon's circuit design idea can be summarized as “ modularization ” and “ Equivalence ”.
So-called modularization Is to use a small number of simple modules to build a variety of complex functions , This is also the core guiding ideology of today's computer industry .
In computer products , It is often a replication of a large number of the same modules , This is also IT The industry can develop very fast 、 The important reason why Moore's law can be established .
Equivalence That is, any complex calculation can be equivalent to many addenda 、 reduce 、 ride 、 Division operation , Then it is equivalent to the logic of switching circuit , in other words , The latter is realized , The former is realized indirectly .
I felt the difference at once , I just described the phenomenon , It doesn't touch the essence , There is no rule .
I asked myself : The story of bull and Shannon , Can you think of this floor ?
It doesn't seem to work .
If it is purely technical , Such as redis When caching like this , I'll dig deep into the bottom : There is a huge difference in speed between the various parts of the computer . But for the history of Technology , I can't do .
It can be seen that the scope of knowledge is not broad enough , Insight is not deep enough , Not up to this level .
Anyone can say a few words about superficial phenomena , But the profound things behind it are difficult to talk about , But it is precisely these things , We were impressed , Touch the heart .
I still have to read more in the future , Think more deeply , Try to discover the essence from the phenomenon , Sum up the regular things .
2
When writing about unit testing , I found Martin Fowler An article written , As soon as I saw the picture, I felt scratched .
Figure shows the unit test , such as , You are testing Order class ,Order Class refers to Product and Customer, When doing unit tests , Do you want to use these two goods Mock Technology is isolated from testing ?
I used to encounter this situation when writing unit tests , It's hard to explain every time .
Martin Fowler The power of the is that he has analyzed two situations , Each summed up an appropriate name :
1. Sociable Tests
“ Socialization ” Test of , It means that everyone (Order, Product, Customer) All together , No segregation

2. Solitary Tests
“ alone ” test , It means to separate , Only test Order class .

This really brightens my eyes , With a mutually agreed name , Communication efficiency is greatly improved , Just like design patterns , As long as you say you used observer mode , I know what it looks like without looking at the code .
I have to reflect : These two test methods have been entrenched in my mind for a long time , Why didn't I summarize , Give it an interesting , The appropriate name ?
The first is lack of consciousness , little does one think ; Secondly, I'm afraid my ability is not enough .
Be able to say what others want to say , But something difficult to express , Successfully scratched everyone's itch , This is really a great skill .
3
Two small things , Let me feel a big gap with the great God .
Want to keep going up , Knowledge needs to be broader , Insight must be stronger , Thinking must be deeper .
It needs to be recorded frequently 、 Arrangement 、 reflection 、 Output , If we look at fragmented things all day , The brain is useless .
A passage , null .
( End )
Click on the picture below , See more highlights
边栏推荐
- InfoQ 极客传媒 15 周年庆征文|移动端开发之动态排行【MUI+Flask+MongoDB】
- Nomad application scheduling scheme 08 of hashicopy (detection job)
- SQL:如何用采购单销售单的数据 通过移动加权平均法 计算商品成本
- AGV robot RFID sensor ck-g06a and Siemens 1200plc Application Manual
- Terrain + ansible implements infrastructure and configuration management
- Is the securities account opened in qiniu safe? How to apply for a low commission stock account?
- Hashicopy之nomad应用编排方案08(检测Job)
- 【201】php异常处理-PHP中的try catch finally异常处理
- 在启牛开的证券账户安全吗?如何申请低佣金的股票账户?
- Terraformer importing cloud resources
猜你喜欢

Ecplise cannot connect to SQL Server

Please, don't use enumeration types in external interfaces any more!

【信号去噪】基于稀疏性 (BEADS) 实现色谱基线估计和去噪附matlab代码和论文

AGV robot RFID sensor ck-g06a and Siemens 1200plc Application Manual

InfoQ 极客传媒 15 周年庆征文|移动端开发之动态排行【MUI+Flask+MongoDB】

关于分布式锁的续命问题——基于Redis实现的分布式锁

Can't understand kotlin source code? Starting with the contracts function~
![[filter] design of time-varying Wiener filter based on MATLAB [including Matlab source code 1870]](/img/1a/7b80f3d81c1f4773194cffa77fdfae.png)
[filter] design of time-varying Wiener filter based on MATLAB [including Matlab source code 1870]

Variable parameter expression

马斯克称自己不喜欢做CEO,更想做技术和设计;吴恩达的《机器学习》课程即将关闭注册|极客头条...
随机推荐
折叠表达式
No delay / no delay live video instance effect cases
cadence SPB17.4 - group operation(add to group, view group list, delete group)
Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)
Kubernetes binary installation (v1.20.16) (V) verifying master deployment
五年官司终败诉,万亿爬虫大军蠢蠢欲动
Explain in detail the differences between real participation formal parameters in C language
三级分类展示
kubernetes 二进制安装(v1.20.15)(六)部署WorkNode节点
深度学习与CV教程(14) | 图像分割 (FCN,SegNet,U-Net,PSPNet,DeepLab,RefineNet)
Is the securities account opened in qiniu safe? How to apply for a low commission stock account?
Is byte really the end of the universe?
Interview to build an aircraft carrier, screw on the job, pay
Today in history: Apple II comes out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born
How does Cassandra, an open source database giant, tell a "new story" in China? Face to face
Hashicopy之nomad应用编排方案08(检测Job)
[Multisim Simulation] 555 flash lamp experiment
JDBC连接池去做批量导入,每次运行500万数据,但是在中间就会出各种问题
自定义Terraform-Providers(Terraform Plugin Framework)-04
[201] PHP exception handling - try catch finally exception handling in PHP




