DEV Community

Discussion on: Functional Programming in JavaScript with Hyperapp

Collapse
 
arnaudmorisset profile image
Arnaud Morisset

Thanks for the post!

I'm not really convinced by this framework. Sure, the syntax and all the sugar coming from the API is cool, but Elm provides some interesting things and I can't live without now.

  • The compiler, the error log is awesome and there are "no runtime exceptions".

  • Type system, a type system that really works (I like TypeScript but type system could be better, try to write a high-order function and see what happens ;-) )

  • Maybe, it seems that you don't like it a lot, but the possibility to have a program without null, void, undefined or things like that is really cool.

Collapse
 
stevealee profile image
SteveALee

Typescipt!

Collapse
 
kgashok profile image
kgashok

Read bit.ly/typescriptTax

Types only contribute to a minority of potential bugs.

Thread Thread
 
arnaudmorisset profile image
Arnaud Morisset

Types are not just for fixing potential bugs (well, not only for that). They provide a better developer experience by providing you with a way to structure your program with a "logical flow" based on the data/resource you use.

Having that let you write maintainable code with less headache and make refactoring easy (and let you be more confident about the code you write) which lead to fewer bugs non-related to types but more to the logic behind the program.

I think that JavaScript users (like Eric Elliot) don't like strict types system because of TypeScript. It provides a really poor integration with non-TS libraries and its error messages are sometimes really cryptic.

You should give a try to Elm, at least it can be fun. :)