Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 81,163 posts.

Any topic
Any year
58442

Modular Errors in Rust

It is thankfully common wisdom nowadays that documentation must be placed as near as possible to the code it documents, and should be fine-grained to a minimal unit of describability (the thing being documented). The practice provides numerous benefits to the codebase and project as a whole: