Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Let me tell you the single reason I haven't switched to Elixir yet: I develop backend and frontend (SPA) so I'd rather just stick with a single language and library catalog. It helps that there's plenty of libraries in JS land too. I would love to just write elixir code but at the end of the day I feel sticking with node+browser js is the more pragmatic choice right now.


Isn't phoenix meant to remove the JS dependency on FE dev? (Not arguing with any of your points btw, JS is matter-of-factly more popular and pragmatic).


I just implemented a thing for work in very bare Phoenix Liveview. It integrates with Plaid. I definitely needed hooks and about 200 lines of JS to get it working. You can't completely kill JS, yet, unfortunately.


Was it your integration with Plaid that required the 200 lines of JavaScript?

I've spent the last year building out a web application for service providers to use to manage disaster recovery software for multiple clients using Elixir, Phoenix, LiveView, and TailwindCSS. We haven't used a single line of JavaScript code, including for the Tailwind components that typically rely on JavaScript to function. LiveView has been able to handle it all.


Correct, it's entirely the plaid integration. Actually I cleaned up the code considerably since writing that statement and now it's about 100 lines.

I wish I could have better integrated tests with the javascript, but considering, the live view suite of tests is really quite good.


I agree that JavaScript is more popular, but I think it is the least pragmatic language I've ever used.

In my mind, a pragmatic language doesn't do things like:

1. Have multiple ways to define a function. 2. Handle functions differently depending on how they're defined. 3. Allow silly things like 2 + "2".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: