TIL Rust has an ambiguity `if Foo {}` -- is `Foo` a value of type bool, or a struct?
Rust solves this by defining a grammar production 'any expression except struct literals' and using it in this position.
miniblog.
Related Posts
Integration tests are inherently scary. You want to make them as similar as possible to your production environment, which massively increases the risk that one day they will talk to production directly.
JITs are blackboxes that can make it hard to reason about performance in production:
I've come to see any database other than sqlite as premature optimisation. Running a separate DB process, securing it, backing it up: they're all more hassle with production DBs.
I'm not sure what the key-value or document store equivalent is though.