Live data from Hacker News

Elm at Pacific Health Dynamics

mordrax.gitbooks.io

11–20 of 57 posts

Re: Elm at Pacific Health Dynamics

#12
post #6

I never enjoyed frontend programming until I came across Elm. Not only that Elm turned out to be a gateway drug to Haskell. Now I write frontend and mobile apps in Haskell using Functional Reactive programming (FRP).

Yeah, we've had a great time writing Elm for a fairly complex single-page Ethereum dApp. It's conceptually a lot simpler than Haskell, which made it easy for the team to pick up. I only wish it had a better system (Tasks) for JavaScript interop instead of ports.

Re: Elm at Pacific Health Dynamics

#13
A bit of a side-track, but I feel like I'm in a weird waiting phase with Pure FP JS.

With Elm, I don't really feel like introducing it to my team before 0.19 hits, because it "feels" like it's around the corner, but it has felt like that for a while.

With Haskell, I'm not entirely happy with GHCJS and the tooling surrounding it. I'm dreaming of the WebGHC[0]/WASM being nicer, if it ever gets done.

I don't exactly know what keeps me off PureScript, perhaps that most frameworks just seem to compile to React, and that the community still hasn't settled on one (at least it seems so from the outside).

Honestly, Miso[1] is the one I feel the most optimistic about atm.

[0] https://github.com/WebGHC

[1] https://haskell-miso.org

Re: Elm at Pacific Health Dynamics

#14
post #6

I never enjoyed frontend programming until I came across Elm. Not only that Elm turned out to be a gateway drug to Haskell. Now I write frontend and mobile apps in Haskell using Functional Reactive programming (FRP).

What framework or library are you using to write frontend and mobile apps in Haskell?

Re: Elm at Pacific Health Dynamics

#15
post #8

The lead paragraph is a bit worrying. > Since July 2017, I’ve been leading the frontend rewrite of their flagship product. The codebase was at 16k LoC when I started. Since then, I’ve rewritten the various subsystems at least once (I'm looking at you generic form component). Now we hover around 45k LoC with most of the common SPA structures stabilizing. We are about a third of the way to completion. I don't know if i…

It may be relevant that he applied elm-format to the codebase, apparently for the first time. elm-format puts very little code on each line and puts a lot of meaning into indentation, so that alone could inflate the LoC instantly without changing any semantics.

Re: Elm at Pacific Health Dynamics

#16
post #6

I never enjoyed frontend programming until I came across Elm. Not only that Elm turned out to be a gateway drug to Haskell. Now I write frontend and mobile apps in Haskell using Functional Reactive programming (FRP).

What framework or library are you using to write frontend and mobile apps in Haskell?

Reflex

http://docs.reflex-frp.org/

Re: Elm at Pacific Health Dynamics

#17
post #12
post #6

I never enjoyed frontend programming until I came across Elm. Not only that Elm turned out to be a gateway drug to Haskell. Now I write frontend and mobile apps in Haskell using Functional Reactive programming (FRP).

Yeah, we've had a great time writing Elm for a fairly complex single-page Ethereum dApp. It's conceptually a lot simpler than Haskell, which made it easy for the team to pick up. I only wish it had a better system (Tasks) for JavaScript interop instead of ports.

This is so true. I liked and used Elm when I have the right to make final decision. But it's hard to convince others use Elm when coming to integrate with JS.

That's the reason TypeScript won. It intergrate with existing JavaScript seamlessly.

Re: Elm at Pacific Health Dynamics

#18
post #12
post #6

I never enjoyed frontend programming until I came across Elm. Not only that Elm turned out to be a gateway drug to Haskell. Now I write frontend and mobile apps in Haskell using Functional Reactive programming (FRP).

Yeah, we've had a great time writing Elm for a fairly complex single-page Ethereum dApp. It's conceptually a lot simpler than Haskell, which made it easy for the team to pick up. I only wish it had a better system (Tasks) for JavaScript interop instead of ports.

ReasonML could be a good middle ground there.

Re: Elm at Pacific Health Dynamics

#19
post #13

A bit of a side-track, but I feel like I'm in a weird waiting phase with Pure FP JS. With Elm, I don't really feel like introducing it to my team before 0.19 hits, because it "feels" like it's around the corner, but it has felt like that for a while. With Haskell, I'm not entirely happy with GHCJS and the tooling surrounding it. I'm dreaming of the WebGHC[0]/WASM being nicer, if it ever gets done. I don't exactly kno…

You might check out ReasonML. There is even a blessed ReasonReact
Post reply on HN