Live data from Hacker News

Phoenix 1.7 is View-less

germanvelasco.com

1–10 of 224 posts

Re: Phoenix 1.7 is View-less

#5

Speaking as an amateur programmer, is this like Laravel's livewire or intertiajs with inline blade component? (but in Elixir). Or is this something else?

I think livewire was inspired by phoenix liveview. I remember there was even a podcast interview about it.

Re: Phoenix 1.7 is View-less

#6
Elixir/Phoenix has hit full-stride.

I feel like the next big unlock in user adoption is continued improvements to BeamAsm. Hopefully something on the order of 100-200% raw performance speed up. Note: I’m talking about raw perf, not concurrency.

A few other additions to Phoenix 1.7 include:

- verified routes

- tailwind built in

- additional web server support (bandit)

https://www.phoenixframework.org/blog/phoenix-1.7-released

Re: Phoenix 1.7 is View-less

#7
This makes sense to me. Views always seemed a like unnecessary boilerplate to me. Better to keep all the code together in one module, and just import common functions. On the other hand, I don't typically like defining the template in a sigil, unless it's a really small one, so I probably won't do that much.

Re: Phoenix 1.7 is View-less

#8
I'm building a startup in my free hours using Phoenix Liveview. I can ship features in hours vs days thanks to the simplicity liveview gives me. ZERO react/JS nonsense.

I back to writing server side rendered templates with for-free reactivity. Give it a try it's very productive

Re: Phoenix 1.7 is View-less

#10
post #7

This makes sense to me. Views always seemed a like unnecessary boilerplate to me. Better to keep all the code together in one module, and just import common functions. On the other hand, I don't typically like defining the template in a sigil, unless it's a really small one, so I probably won't do that much.

I agree in the case of HTML rendering, but I write a lot of JSON APIs and putting the JSON definition in the View has been very pleasant. It didn't say in OP, but how does this change an API? Maybe a `GreetJSON` instead of `GreetHTML`?
Post reply on HN