News for hackers. Stuff that matters.
Re:React Tutorial: Cloning Yelp by moogleii on Thursday May 26, 2016 @02:51PM (#11780518)
I've no doubt Elm is simpler (considering it's more vertically integrated), but to be fair, if webpack is a maybe in Elm, lodash, immutable, isomorphic fetch, and webpack-hot-middleware would definitely be on my maybe list for React. Maybe maybes would include redux-thunk.
Re:React Tutorial: Cloning Yelp by callahad on Thursday May 26, 2016 @03:53PM (#11780952)
Vertical integration plays a part with blessed libraries for rendering, routing, and requests, but it's not just vertical integration: Elm completely obviates Immutable.js, TypeScript, Reselect, Redux-Thunk, and Lodash/Ramda by virtue of fundamental language design choices. The same goes for Haskell, OCaml, and PureScript. In that context, Redux becomes a design pattern, rather than a library.

Ultimately, it feels like React's best practices and associated libraries try to bludgeon JavaScript into acting like a functional, immutable language. If that's the right model, I'd rather just use a language that was intentionally designed to be functional and immutable from the start. :)

Re:React Tutorial: Cloning Yelp by aidos on Thursday May 26, 2016 @04:49PM (#11781465)
Can you embed an existing js app (angular) with Elm? Doesn't need to be any real communication between them. Just have the Elm app decide if the angular app is displayed or not. Honest question as I'm embedding angular in react at the moment and there's quite a lot of library fatigue going on.
Re:React Tutorial: Cloning Yelp by t1amat on Thursday May 26, 2016 @05:51PM (#11781974)
Yes, this is possible. Angular and Elm could easily communicate through Elm's JavaScript FFI.