Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
theshrike79
17 days ago
|
parent
|
context
|
favorite
| on:
Examples are the best documentation
How about the Go style where examples in documentation are actually run as part of the test suite:
https://go.dev/blog/examples
?
This way the examples must always be valid and runnable.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This way the examples must always be valid and runnable.