You are viewing a single comment's thread from:

RE: Phoenix Framework - Building a Chat Room with Phoenix Live View and Server Side Rendering

in #utopian-io5 years ago

I thank you for your contribution. Here are my thoughts. Note that, my thoughts are my personal ideas on your post and they are not directly related to the review and scoring unlike the answers I gave in the questionnaire;

Well, if I understood correctly; you've just written a backend and it acted also as a frontend. It is sudden on a local machine, but what about servers? Isn't it resource intensive as there is no client-side? I'm working on an Electron project and using React, I would like to try it out if there are any advantages over React when used with Electron. But it seems like I have to learn Elixir beforehand and the syntax looks very frightening as like other functional languages to a foreigner like me.


Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Sort:  

Thank you for your review, @yokunjon! Keep up the good work!

yes @yokunjon, it is almost all server side with a very minimal client. Obviously there needs to be a small hyper text document and a little JavaScript to connect the phoenix Channel to the client's browser. But no, despite being rendered on the server side this is not very resource intensive. Elixir is an extremely efficient and preformant language because of its concurrency model (the actor model) and so when you start working with these Phoenix Channels you are able to harness that distribution and take full advantage of the system. When they announced LiveView a few months ago, they demoed it with an animation that ran over 60 fps with very minimal resource usage which was interesting.

I know the syntax can be a bit of a nightmare at first; all of this pattern matching can be confusing and writing callback functions as first class functions can seem a bit strange at first as well. That being said, you could easily learn Elixir in a few weeks given some time. I find that it is one of the more accessible functional languages out there and its actually a fairly accessible language in general. You just have to get over the initial abstraction hump for the Actor Model and once you've done that its pretty intuitive. I've actually got an Intro to Elixir series that I am working on that you are welcome to follow along with.

Anyhow, thanks for moderating my contribution.

Coin Marketplace

STEEM 0.15
TRX 0.15
JST 0.028
BTC 53406.15
ETH 2223.47
USDT 1.00
SBD 2.29