LIHAI‘s周报 2025-01-10
大规模系统如何开发,有哪些原则?
Summary
- Large codebases are worth working in because they usually pay your salary
- By far the most important thing is consistency
- Never start a feature without first researching prior art in the codebase
- If you don’t follow existing patterns, you better have a very good reason for it
- Understand the production footprint of the codebase
- Don’t expect to be able to test every case - instead, rely on monitoring
- Remove code any chance you get, but be very careful about it
- Make it as easy as possible for domain experts to catch your mistakes
来!折腾一下Windows3.x
旧硬件的好处就是,可以让你了解很多你本不需要知道的东西。
Wherein I learn too much about VGA hardware and generate some really cool glitch art while I try to fix somebody else’s fix for a video driver that’s older than I am.
可以无痛测血糖了
no-more-needles-tracking-blood-sugar-your-wrist
University of Waterloo engineers have achieved this technological feat to help people faced with chronic health problems such as diabetes monitor their glucose levels.
当你持续让AI写更好而代码
keep telling AI to write better code.
What would happen if we tried a similar technique with code? LLM-generated code is unlikely to be slop (although not impossible) as it follows strict rules, and unlike creative outputs such as images, code quality can be measured more objectively.
一个能玩俄罗斯方块的pdf文件
现在知道PDF文件有多危险了吧。
ASIC 网页版仿真
This is a gate-level simulation
This is a gate-level simulation of my TinyTapeout ‘09 submission running directly in your browser. The circuit occupies a single 160x100 μm tile on a multiproject chip and generates a 60fps 640x480 VGA signal that forms a scrolling animation of several elementary 1D cellular automata rules. Most of the tile area is occupied by two 160-bit shift registers: one (left) stores the current image line, while another (right) stores the first line of the next frame (4th line of the current).