Re:Elixir in Depth – Reading and personal notes
by randomstudent on Thursday August 17, 2017 @09:45AM
(#15036689)
You can look into drab, an elixir server-side DOM manipulation library: https://github.com/grych/drab. I've never used it, but many people in the Elixir community think it holds a lot of potential.
Re:Elixir in Depth – Reading and personal notes
by esistgut on Thursday August 17, 2017 @10:11AM
(#15036917)
This project seems really interesting, I guess it could pretty much replace SPAs (and related javascript fatigue) in a lot of use cases. Am I missing some significant limitation other than moving some computation back to the servers?
Re:Elixir in Depth – Reading and personal notes
by randomstudent on Thursday August 17, 2017 @10:28AM
(#15037069)
I'm not qualified to answer that, as I haven't used Drab, but you can ask on the proper topic at the elixir forum: https://elixirforum.com/t/drab-phoenix-library-for-server-si...
Re:Elixir in Depth – Reading and personal notes
by grych on Thursday August 17, 2017 @11:51AM
(#15037860)
The only real limitation I can see for now is a response time for the actions, which might be done locally, without requesting anything from the server. Eg, you don't want to do animation loop with Drab, for this just use the ol' good JS.
Re:Elixir in Depth – Reading and personal notes
by bobwaycott on Thursday August 17, 2017 @12:00PM
(#15037950)
Boy, am I glad I read the HN comments today. Never knew Drab existed. It’s fantastic!
Re:Elixir in Depth – Reading and personal notes
by notamy on Thursday August 17, 2017 @10:18AM
(#15036976)
Holy @#$% that's amazing.
(Say what you will about Struts, but at least it makes JavaScript/React almost palatable by comparison.)