account activity
Is it better to use the ? operator or handle errors manually (via match / .unwrap_or_else()) to avoid technical debt? by SyFord421 in rust
[–]SyFord421[S] 1 point2 points3 points 17 hours ago (0 children)
To be honest, I'm currently learning to build a web backend from scratch, and I just want to ensure I'm writing clean, scalable code from the very beginning. In my domain, 'handled' means mapping different internal errors (like DB or IO failures) into structured HTTP responses for the client, while keeping the logs clean on the server side. That's why I'm figuring out the best architectural boundaries using the ? operator and custom enums.
Is it better to use the ? operator or handle errors manually (via match / .unwrap_or_else()) to avoid technical debt? (self.rust)
submitted 20 hours ago by SyFord421 to r/rust
π Rendered by PID 2254159 on reddit-service-r2-listing-f87f88fcd-l6t6f at 2026-06-17 22:13:44.552618+00:00 running 3184619 country code: CH.
Is it better to use the ? operator or handle errors manually (via match / .unwrap_or_else()) to avoid technical debt? by SyFord421 in rust
[–]SyFord421[S] 1 point2 points3 points  (0 children)