derek-zhou

derek-zhou

Liveview vs XXXXView?

Phoenix provides both Liveview and a traditional stateless view. It seems like many people have trouble naming the traditional view, and I’ve seen:

  • Dead view. This is a bad name as it has a negative connotation
  • Classic view: This is also bad because what if we have a newer tech down the road and liveview itself becomes classic?

Can I propose that we make an official name for the traditional view to reduce confusion? I’d like the name to be short, neutral and conveying technical meanings. How about:

  • Restview, REST means statelessness, and it is also short
  • HTTPview, It is just plain HTTP after all,
  • or something else?

Most Liked

LostKobrakai

LostKobrakai

I’d probably go with static views. They don’t change after being rendered. That’s what differenciates them from liveviews.

RESTView is imo not good, because not everything non live is REST.
HTTPView has the same problem, because not everything non live uses HTTP.

Case in point: Rendering html for emails. Not REST and SMTP for transfer.

chrismccord

chrismccord

Creator of Phoenix

“Phoenix views” :+1:t2:

Where Next?

Popular in Discussions Top

restack_oslo
Hello, Please pardon me for any faux paux. I am 46 and this is my first time on a forum of any kind. I wanted to to get answers from tho...
New
rower687
Hi all, I’ve been reading a lot about the “let it crash” term and how supervising processes and the whole messaging passing make an elixi...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
jer
I’ve been using umbrellas for a while, and generally started off (on greenfield projects at least) by isolating subapps based on clearly ...
New
opsb
We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is runn...
New
pillaiindu
I want to convert a Phoenix LiveView CRUD website to a CRUD mobile app. What do you think is the easiest way to do so?
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
New

Other popular topics Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement