News for hackers. Stuff that matters.
Re:Elm from a Business Perspective by wyager on Wednesday November 09, 2016 @06:23PM (#12915911)
> Our Elm code is about as DRY as our JavaScript code

Not to be flippant, but that's not saying much.

Re:Elm from a Business Perspective by the_gipsy on Wednesday November 09, 2016 @06:37PM (#12916031)
JavaScript code is or can be extremely DRY. I have noticed this especially on a redux (inspired by Elm's architecture) codebase. The pitfall is that JavaScript is very unsafe and hard to read.

I've worked with TypeScript too, and there I started to notice more repitition and boilerplate, although IMO It is very well worth the safety.

Re:Elm from a Business Perspective by the_duke on Wednesday November 09, 2016 @06:48PM (#12916129)
Javascript is dynamically typed though.

And Typescript has generics or circumventing the type system with :any to enable reusability.

Re:Elm from a Business Perspective by the_gipsy on Thursday November 10, 2016 @02:54AM (#12918542)
Exactly my point, dynamically typed means writing less boilerplate. At the cost of safeness and mantainability.

TypeScript's any is more for compatibility with js libs though.

Re:Elm from a Business Perspective by boubiyeah on Thursday November 10, 2016 @05:53AM (#12919352)
Yes, in a sane codebase, you (almost) never use <any>. 98% of the time, if you type <any>, you're being lazy.