3 ms·
Should I really have "all this fancy stuff" to process onClick events which can be done in 3 lines of plain ugly JS?) "All this fancy stuff" is just an explora
by chongli 13y ago
Should I really have "all this fancy stuff" to process onClick events which can be done in 3 lines of plain ugly JS?)
"All this fancy stuff" is just an exploration of what's possible. The verbosity can (and will) be abstracted away via Clojure's excellent tools of abstraction (higher-order functions and macros). Your "3 lines of plain ugly JS" aren't going to scale because they rely on mutation. Mutation is deceptively quick and easy when you're just starting out. However, once your program grows large it turns into a sprawling mess of complexity.