Comment by metadat
3 years ago
Decisions deserve documentation (because a footgun warning is preferable to spontaneous unintended penetration).
3 years ago
Decisions deserve documentation (because a footgun warning is preferable to spontaneous unintended penetration).
It is documented. https://pkg.go.dev/net#TCPConn.SetNoDelay
> The default is true (no delay), meaning that data is sent as soon as possible after a Write.
Huh, really? There is public API to change behavior, thats about it. There maybe a million page documentation by now if every decision needed a documentation.
As the amount of confusion and back-and-forth in this story thread proves, such topics deserve more attention rather than being lumped in alongside less consequential matters. Ideally the goal is to spread the knowledge and expertise to as many humans as possible by making it accessible.
The only thing this story thread proves is that young folks aren’t being taught basic networking or distributed systems functionality and history.
TCP options and disabling Nagle’s algorithm was a topic you learn when introduced to RPCs, maybe in 3rd or 4th year, at least in the 90s.