Rewrite in Elm?

Wasn’t there reactjs talk at some point?

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)

2 Likes

Not that the search function can find!

1 Like

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.

1 Like

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

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.

6 Likes

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:

10 Likes

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!

7 Likes