4 ms·
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).
by void_mint 6y ago
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).
- dnautics 6y agoI 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.
- innocentoldguy 6y agoWas 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.
- dnautics 6y agoCorrect, 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.
- innocentoldguy 6y agoI 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".