News for hackers. Stuff that matters.
Re:Things I wish I knew before moving 50K lines of code to R... by mmcclure on Friday September 01, 2023 @01:54PM (#37354113)
> Or go best-of-all-worlds if you happen to know Elixir/Phoenix.

Muxer here, and fun fact, Elixir is a core piece of our infrastructure and has been from the start! At the very beginning our dashboard interface was all rendered by Phoenix and occasionally a page would individually include React if it was a situation that truly needed advanced client-side interaction. Given that our first product was an analytics dashboard, that latter situation quickly became basically our entire dashboard and it simply made sense to move to a full SPA taking advantage of the API we were exposing to customers anyway. This was 2016, so LiveView didn't exist at the time, but I'm still not sure I'd make a different decision for that product today.

The blog post is talking about the application that powers our public marketing site, which has a pretty different set of needs, but figured I'd throw it out there that we use and love Elixir/Phoenix! :)

Re:Things I wish I knew before moving 50K lines of code to R... by anonyfox on Friday September 01, 2023 @04:42PM (#37355976)
Thanks for sharing the Elixir love!

More people should do this openly I think, since it’s still vastly underrated and fellow alchemists seem to be too humble to evangelize!

Re:Things I wish I knew before moving 50K lines of code to R... by satvikpendem on Friday September 01, 2023 @05:04PM (#37356159)
It's nice but if only it had types. After using languages like TypeScript and Rust, it's very hard to go back.
Re:Things I wish I knew before moving 50K lines of code to R... by melx on Friday September 01, 2023 @05:37PM (#37356434)
You forgot to also say Rust is faster.. if all languages were very similar there's not much point in having those.
Re:Things I wish I knew before moving 50K lines of code to R... by satvikpendem on Friday September 01, 2023 @05:39PM (#37356454)
That's fine, that's why I continue to use Rust and not Elixir.
Re:Things I wish I knew before moving 50K lines of code to R... by jpbastyr on Saturday September 02, 2023 @12:52AM (#37358643)
There are a small handful of statically typed languages on BEAM, gleam is the only one I've played around with but it's pretty neat
Re:Things I wish I knew before moving 50K lines of code to R... by satvikpendem on Saturday September 02, 2023 @12:58AM (#37358661)
Yeah I've used Gleam but unfortunately using a language for production apps that is not well supported as Rust and even Elixir is is a dealbreaker for me. Gleam is fun to play around with though.