Rewrite in Elm?

(Jeff Wong) #21

Wasn’t there reactjs talk at some point?

(Uwe Keim) #22

Back in 2008 I rewrote the complete C++ MFC code base of or German Desktop CMS in C# with the standard WinForms UI components.

Despite what Joel says (and I give a lot about what he says!), it was the best decision we ever did, both technically and in terms of financial profit.

Some years later we replaced the complete UI with DevExpress components. Again, this was a good decision for us.

So just my two cents to give a subjective example that the rule does not always apply.

(This is the app in case anyone is interested)

(Daniel Gagnon) #23

Not that the search function can find!

(Robin Ward) #24

Oh people have suggested that too! There are even some installs out there where people have implemented a limited front end on our API. I’m not sure of any success stories though.

(Daniel Gagnon) #25

Is the backend 100% API based with no templating or rendering going on at all in RoR?

(Robin Ward) #26

It’s “almost” 100% APITM – you need to render a template to bootstrap our ember application. We also have SEO non-functional versions of some pages which are rendered server side.

(Richard Feldman) #27

Based on our experiences introducing Elm at work, I would strongly recommend:

  1. Introducing Elm
  2. Introducing it incrementally

We now have the largest Elm production code base anyone knows of (36,000 LoC of Elm code), and even though we still have plenty of legacy code that hasn’t been ported over to Elm, our code base is so much better than the React-based structure we had before.

New development is faster, maintaining old stuff is easier, and our whole front-end is way more reliable. In over a year, our production Elm code has still never thrown a single runtime exception. (We’d know if it did, because we use Rollbar to log all the runtime exceptions our legacy JS code still throws on a regular basis.)

If you’re curious about our experience and what we learned along the way:

I think if we’d gone for a full rewrite we’d still be using React for everything, and we’d be much worse off for it. :slight_smile:

Also happy to answer questions about our experience, Elm, favorite pizza toppings, etc. :wink:

(Daniel Gagnon) #28

And you didn’t even mention the book you are writing, Elm in Action? I’ve read the chapters available so far and it’s quite excellent!