Earlier quoted context omitted.
For a lot of the LiveView applications that I write (which is actually quite a few these days), I will usually lean on something like AlpineJS for frontend specific interactions, and my LiveView state is for things that require backend state. For example, if I have a flag to show/hide a modal to confirm a resource delete, the show/hide flag would live in AlpineJS, while the resource I was deleting would live in the s…
I'm surprised to see so few mentions of AlpineJS. Personally, PETAL has become my de facto stack.
How we got to LiveView
161–170 of 293 posts
Re: How we got to LiveView
#162Creator of Phoenix here. I'm happy to answer any questions folks have about LiveView, Phoenix, or Elixir in general. We've had some big LiveView features land recently with uploads and HEEx so now's a great time to jump in!
Almost every time I see a discussion about LiveView there’s someone complaining about the issue of latency/lag, and how it makes LiveView unsuitable for real-world applications. From what I understand, the issue is that every event that happens on the client (say, a click) has to make a roundtrip to the server before the UI can be updated. If latency is high, this can make for a poor user experience, the argument goe…
Agree it's super neat framework and hope a client side implementation can be written to "stage" the change.
Re: How we got to LiveView
#163Re: How we got to LiveView
#164Earlier quoted context omitted.
This is a pretty good liveview tutorial: https://github.com/dwyl/phoenix-liveview-counter-tutorial We also have a hiring project that's designed to ease people in to Phoenix + LiveView. We extracted this from a real app and tried to make it as simple as possible to work on: https://github.com/fly-hiring/phoenix-full-stack-work-sample
What sort of experience level are you hiring for? I've been teaching myself elixir and liveview over the past year for my first job (building dashboards for a non-technical nonprofit) and I've been hoping to transition to working somewhere technical but I have no idea how to do it. Thanks!
Re: How we got to LiveView
#165Earlier quoted context omitted.
What sort of experience level are you hiring for? I've been teaching myself elixir and liveview over the past year for my first job (building dashboards for a non-technical nonprofit) and I've been hoping to transition to working somewhere technical but I have no idea how to do it. Thanks!
Your experience level, actually. Here's the full post: https://fly.io/blog/fly-io-is-hiring-full-stack-developers/
Re: How we got to LiveView
#166Earlier quoted context omitted.
I'm surprised to see so few mentions of AlpineJS. Personally, PETAL has become my de facto stack.
What is PETAL?
Re: How we got to LiveView
#167This strikes me as sort of like Meteor, only without the suggestion that real time apps will be trivially easy to build.
Re: How we got to LiveView
#168(I’ve become a big fan of Elixir as a former Smalltalker)
Re: How we got to LiveView
#169Earlier quoted context omitted.
Looking more at things like #2. Sidekiq isn't terrible though, and if you get big enough, you're going to want some more management than just spawning a BEAM process to do something. What have people settled on for that with Elixir/Erlang?
Sidekiq is great, but it is a thing you have to think about (in particular, how you're shuttling state from workers to a place where front-end can see it). The big win with Phoenix as I understand is not having to think about it at all: it has a natural expression in the language and the platform, and that expression is performant.
Re: How we got to LiveView
#170"Do you remember when Ruby on Rails was first released? I do. Rails was also a revolution." I remember and I disagree. It was dog slow, run by a guy who made slides that said "Fuck you." and was rife with memory leaks.
I worked for a gentleman[0] who, while not a programmer by trade[1], he was an old Unix guy and a Linux early-adopter. All of that to say that when he'd made a recommendation for me to explore this or that technology, I generally listened. He pointed me at Ruby on Rails. I admit I came into researching Rails a little reluctantly and pretty early on, as well. That probably biased my opinion of things a lot more than i…