3 ms·
The article says that PureScript helped them reduce bugs but fails to give any examples of how PureScript prevented bugs. Looking at the examples, the code see
by Osiris 6y ago
The article says that PureScript helped them reduce bugs but fails to give any examples of how PureScript prevented bugs.
Looking at the examples, the code seems to function the same so it's not obvious what problem is being solved that warrants teaching a whole dev team a new language.
In my experience, the vast majority of React app bugs are 1) state management, or 2) asynchronousisty. How does PureScript help to prevent those two classes of bugs?
- roebk 6y agoIn my experience the vast majority of React bugs are standard bugs you'd find in any JavaScript program, null reference errors. PureScript will force you to handle nulls as a Maybe, preventing a whole class of bugs.