second on Nostr: Small Rust API design lesson from Bark development: if your top-level functions are ...
Small Rust API design lesson from Bark development: if your top-level functions are just thin wrappers around methods on a struct, they shouldn't exist. Put the logic where it belongs.
Published at
2026-02-14 03:59:59 UTCEvent JSON
{
"id": "776284f2645ab5540ac6a018698adc3a4c32456ea6a421a3d1761453323c870e",
"pubkey": "edb2f2991a59669d22108737d1bbbecb1f65a92d24a0b64f05b4557ca0652569",
"created_at": 1771041599,
"kind": 1,
"tags": [],
"content": "Small Rust API design lesson from Bark development: if your top-level functions are just thin wrappers around methods on a struct, they shouldn't exist. Put the logic where it belongs.",
"sig": "d8a8e3e484ee67c3f00af3ad2bcf92455008c5b407d5b7276ed3d6bedf3439b948f70a012af433ddf56a6ec4143110dbca24013d983c66a777cc057577aedbd1"
}