-

@ Mike Dilger ☑️
2025-05-09 18:21:10
I wonder if I should write a guide on "Advice for writing Large Rust Programs" in coordination with nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s and nostr:npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet and maybe others...
Use 'interior mutability' as often as you can. It will help prevent you from accidentally locking far too much, and it will make the struct Send and Sync so it works nicely with async code.
nostr:nevent1qqswhm4da8gd9f70sgeddfg404ndv25g7wdcvdnxv7f7uy8y9zzx2gqpypmhxue69uhkx6r0wf6hxtndd94k2erfd3nk2u3wvdhk6w35xs6z7qgwwaehxw309ahx7uewd3hkctcpypmhxue69uhkummnw3ezuetfde6kuer6wasku7nfvuh8xurpvdjj7slcunq