4 ms·
How do you see the API as messy and complex? It is just `run()` and `DOM.get(selector, eventType)`.
by staltz 11y ago
How do you see the API as messy and complex? It is just `run()` and `DOM.get(selector, eventType)`.
- mrspeaker 11y agoI'm not sure what mdtusz means, but my very initial initial reaction (and this is a very superficial syntax-level look - which of course has very little real value) is that it feels like it less "idiomatic JavaScript" and more like reading Java. Perhaps that's what the parent felt too, but like I said - that's a cursory glance not thinking about the concepts at all. I have Cycle on my radar and am keen to have a deeper play... I will say this though, I am loving all the developments in this space recently!
- staltz 11y ago"Reading like Java" is the last comment I would expect to hear. There aren't even classes in Cycle.js apps, mainly functions and Observables. Anyway, waiting for some informed feedback as opposed to immediate gripes.
- skeeterbug 11y agoHow is this anything like reading Java? Are you sure you looked at the correct examples? Is it because of "main" and the ES6 imports at the top? This comment is truly baffling to me.