Re:Phoenix 1.7 is View-less
by ketzo on Friday December 30, 2022 @07:25PM
(#34191837)
In a large JavaScript codebase that's partway to being a TypeScript codebase, I find myself constantly having to insert `console.log` statements to find out what attributes some object actually has. Plus, our number one source of crashes and errors is unhandled null/undefined because someone didn't realize a parameter might be nullish. Static typing would basically eliminate both of those issues.
[ Parent
| on HN ]
I hear this about big JS codebases but the 7 year old Elixir app I work on is many 10s of thousands of lines of code and we just don’t have that problem.
Re:Phoenix 1.7 is View-less
by throwawaymaths on Saturday December 31, 2022 @12:00AM
(#34193738)
It's not nothing but it's rare. After about two years I finally had a type error. It wasn't horrible, though, just caused extra log lines.
It’s not that we never have type errors, it’s just that they’re the least frequent kind of error I see monitoring sentry. We try to do a zero exception policy, so we’re really on top of what kind of errors are happening.