logoalt Hacker News

Phoenix LiveView 1.2

183 pointsby ksectoday at 4:53 AM51 commentsview on HN

Comments

OhSoHumbletoday at 10:20 AM

I'm pretty smitten with Phoenix as a framework. A lot is built into the BEAM by default and the Elixir ecosystem is quite lovely.

I've been building an Etsy-lite replacement in my free time with it: https://plukio.com/

It's pretty enjoyable. I also like using Ash for data modeling and business logic expression. It's also quite lovely.

orliesaurustoday at 9:29 AM

I've been using Phoenix for super basic things for a very long time since I first discovered it at the Elixir meetup in ATX.

I haven't touched it in a while, Since writing code these days, as most of us know, it's basically steering an LLM.

So I wonder how good are LLMs at writing Phoenix or Elixir so to speak? Time for me to create another side project... and figure it out.

show 5 replies
lwouistoday at 9:37 AM

I like this familly of technologies. Having an SPA-type app that's mostly backend.

Recently i've redone my app website (https://alt-tab.app), and I implemented a minimal spa.js that has a similar approach. I find the end result blazing fast, simple to maintain / reason about, few moving pieces. I used Early Hints, compressed every single thing, inlined CSS, etc. I don't know how i could even make it faster.

I recommend this approach for websites that are not very complex. Of course if i made a browser-based music player with a super dynamic UI, that would have been a different story~

show 3 replies
cpursleytoday at 7:06 AM

LiveView is such a breath of fresh air, especially over the vibe coded NextJS rats nests that have become the norm (that need specialized hosting, are dog slow and require a ton of proprietary paid services bolted on like caching, background workers and even auth which Elixir and Phoenix provide out of the box).

https://elixirisallyouneed.dev

show 3 replies
paradox460today at 3:49 PM

Years ago I used surface ui's colocated css to great effect. Super happy to have it incorporated into mainline live view

candltoday at 7:33 AM

What are the pros and cons compared to ASP.Net/Blazor?

show 3 replies
rubyn00bietoday at 8:10 AM

I’m not sure how I feel about the CSS integration. Nor the collocated JS that was somewhat recently released.

On one hand, yes it is convenient, but on the other it could become a huge mess. It reminds me of Rails 2.x where it became almost impossible to debug, or fix front end code that used rjs or whatever it was called. Because disparate snippets of JS were littered throughout your code base in files that were hard to find.

I’m sure the Phoenix team has put a lot of effort into it, and I truly hope it slaps. I myself am just really hesitant to use it, when CSS files and non colocated JS work just fine. I’ll probably be waiting a couple years before giving it a try

show 2 replies
jimmypktoday at 1:06 PM

[dead]

robinvdvleutentoday at 1:40 PM

[flagged]