Partly agree, after building a full app on the Rust one this week (queues, mail, scheduler, htmx, websockets, an API). The struct and the migration being two sources of truth is real, nothing checks one against the other.
What surprised me is how much the compiler does catch on the Rust side. Forget a required column in create! and it doesn't build. Read a relation you didn't eager load and it stops with a message telling you which .with() to add, so no accidental N+1.
Most of my bugs came from the parts that aren't Rust: templates. Route names there are strings, so a typo is a 500 the first time the page renders. And a model in a template is just a map of its fields, so route() used the id instead of the slug. Every link was a 404 while the test that loaded the page stayed green. Same names as in PHP Laravel, different behaviour, and that's where I lost the most time.
On "far from production": it's 0.1 and it moves fast, but fixes land fast too. I found that lock_for_update() was silently dropped when the query ended in an aggregate, sent a PR, and it got merged the same evening.
Partly agree, after building a full app on the Rust one this week (queues, mail, scheduler, htmx, websockets, an API). The struct and the migration being two sources of truth is real, nothing checks one against the other.
What surprised me is how much the compiler does catch on the Rust side. Forget a required column in
create!and it doesn't build. Read a relation you didn't eager load and it stops with a message telling you which.with()to add, so no accidental N+1.Most of my bugs came from the parts that aren't Rust: templates. Route names there are strings, so a typo is a 500 the first time the page renders. And a model in a template is just a map of its fields, so
route()used the id instead of the slug. Every link was a 404 while the test that loaded the page stayed green. Same names as in PHP Laravel, different behaviour, and that's where I lost the most time.On "far from production": it's 0.1 and it moves fast, but fixes land fast too. I found that
lock_for_update()was silently dropped when the query ended in an aggregate, sent a PR, and it got merged the same evening.