DEV Community

Discussion on: Simple code is different from simplistic code: Elm vs JavaScript

Collapse
 
romeerez profile image
Roman K

Thanks for explaining, so you wanted to show that ELM takes care of data integrity so developer can keep calm and this is why it's "simple". And if it makes sense to always validate JSON data from server instead of trusting it - that's another question, for developer to decide, depends on situation

Thread Thread
 
marciofrayze profile image
Marcio Frayze

Yes, but not just data integrity. That was just the main example, but Elm takes care of all possible runtime exceptions. All those errors on the browser console? They never happen when you are using Elm. A little too extreme? Maybe. But Elm makes it so easy that I believe the benefits compensate the efforts.

But as you said, it's for the developer to decide, and I agree. But it's important we make an informed and well thought decision.