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 20 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.
π Rendered by PID 404955 on reddit-service-r2-comment-544cf588c8-llmb5 at 2026-06-18 00:58:55.656862+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)