• 0 Posts
  • 8 Comments
Joined 3 years ago
cake
Cake day: March 4th, 2024

help-circle


  • These kinds of struggles with JavaScript and TypeScript are part of why I moved to Rust. I value the sanity checks the compiler provides: warning when a Result is ignored and refusing to compile when a match on an enum is missing a branch.

    Also, in Rust, Result is for recoverable failures, while panic! is generally reserved for bugs, broken internal assumptions, or cases where the program has reached a state that it believed should be impossible.


  • My experience might not match others but honestly I would recommend avoiding this trap. It’s just compromise and disappointment all the way up. Then you’ll be blamed for anything that goes wrong despite only 15% of your plan being accepted by executives. If the company culture is different and fosters leadership instead of stifling it then maybe it could work. At the end of the day you’re probably still going to be making someone else’s dreams come true until you start your own company.