Why’s The Design

“Why’s The Design” is a series of articles discussing programming design decisions in the field of computer science. In each article of…

分享
Why’s The Design
Photo by Scott Graham on Unsplash

“Why’s The Design” is a series of articles discussing programming design decisions in the field of computer science. In each article of this series, we present a specific question and explore the pros and cons of the design from different perspectives, as well as its impact on the actual implementation.

These articles document the problems I have encountered and the thoughts I have had during my learning and work. I will continue to update this series, and I welcome you to subscribe.

Network

Why TCP requires three handshakes to establish a connection?
Why was it designed that way?

This article explains why a TCP connection needs at least three handshakes, focusing on TCP fundamentals such as sequence numbers.

Why does it take four waves for TCP to disconnect?
TCP protocol is one of the network protocols we use in our daily lives. It is responsible for establishing and…

This article first discusses why TCP requires four waves to disconnect and explores ways to simplify this process from a design perspective.

Why does HTTPS need 7 handshakes and 9 times delay?
Https is safe, but it is also slow.

Computer System

Why The Design: Why is the CPU slow to access the hard disk?
Considering a computer’s storage system in terms of principle and cost

In this insightful article published on Medium, the author delves into the reasons behind the slow access of the hard disk by the CPU. They explore the intricate relationship between the CPU and hard disk, shedding light on the factors that contribute to this performance bottleneck.

文章索引

阅读更多

那些意外变成特性的 Bug:当代码漏洞改写计算史

那些意外变成特性的 Bug:当代码漏洞改写计算史

那些意外变成特性的 Bug:当代码漏洞改写计算史. 比起草台班子将错就错的神话,面对异常数据时的观测定力才是真的 社交网络上常年流传着一类爽文:某家公司的程序员把代码写崩了,结果不仅没被开除,这个 Bug 反而成了拳头产品,妥妥的爽文主角剧本。 最常被搬出来的有三个:Audio Hijack 写错试用期拯救公。

By huizhou92