DEV Community

Discussion on: The Web I Want

Collapse
 
exadra37 profile image
Paulo Renato • Edited

First:

Congratulations for this excellent write up.

Second:

I use Steven Black Hosts project on all my computers to forbid lots of stuff to load on my browser, as result i have better load times in all web pages I visit.

Third:

Server side rendering html is enough for a huge majority of web pages we see out there and if developers would stop to use their fancy machines to run their javascript and instead would use very old computers they would understand why they should use javascript wisely.

Plus nowadays we already have server side technologies that can render complex html pages in microseconds... yes microseconds, not milliseconds. This is achievable in Elixir with the Phoenix framework. The html engines concatenates the strings to build the html in the http stream that sends the data into the browser, not in memory as any other program language does. See this article for more details.

Phoenix even have server side dom manipulation that avoids the use of tons of javascript on the client side to achieve it.

Watch this video to see how server side dom manipulation can scale for concurrent usage with a demo that runs at 60 fps .

Collapse
 
quii profile image
Chris James

Thanks for the kind words

Elixir & Phoenix has been on my radar for a long time but honestly most people don't even need that kind of response times; even a "slow" server side language like Ruby is fast enough for the majority of cases.

That's what makes it all so ridiculous, its easy to make fast accessible websites if you make simpler choices.

Collapse
 
exadra37 profile image
Paulo Renato

Elixir & Phoenix has been on my radar for a long time

Time to look into it and I strongly recommend anyone to start with PragDave books or courses and just after to learn how to use the Phoenix framework.

even a "slow" server side language like Ruby is fast enough for the majority of cases.

I can agree with you on that any language can server server side rendering fast enough for a lot of use cases.

But for the ones that defend the use of Javascript frameworks due to faster speeds, specially on busy servers, than the solution is Elixr, because is the only language built from scratch to be concurrent, distributed and fault tolerant.

To note that I agree that full Javascript frameworks have their use cases, unfortunately the majority of the times they are not the best tool for the job... but they are a trend, thus it looks bad if one thus not go with the flow ;)