December 17, 2024 @ 09:07 AM UTC
When writing services, it’s tempting to predicate resource cleanup on client disconnects and other external signals. But this is a recipe for resource leaks. (There are many customers who will accidentally leave WebSockets open and so forth.) Besides, it’s bad for a program to externalize its resource management.
December 17, 2024 @ 09:01 AM UTC
https://x.com/KabirGoel/status/1800350238508752952
December 17, 2024 @ 09:00 AM UTC
In Go, always accept and use a context in any long-running call. Had a bug where a GetWorker() call spins until a worker is found even if the request context is canceled!
December 17, 2024 @ 08:59 AM UTC
Font files have a coordinate system with (0, 0) on the bottom left
December 17, 2024 @ 08:59 AM UTC
Project idea: Write a virtual file system that proxies your local filesystem to a mounted SSH server. Useful + good intro to systems?
December 17, 2024 @ 08:57 AM UTC
Claude 3 has this really annoying habit when you ask it to fix a bug in your code—it shows you some code, claims that it has some problem THAT IT CLEARLY DOES NOT HAVE, and then shows you the same code as the “fixed” version.
December 17, 2024 @ 08:57 AM UTC
The way messages are framed in UART kind of reminds me of how WebSockets are framed