News for hackers. Stuff that matters.
Re:The “Developer Experience” Bait-And-Switch by mrdoops on Tuesday September 11, 2018 @06:21PM (#17963915)
Don't even need Ajax anymore. You can render on the fly, and deliver new HTML over websockets. The gap between SPA and classic server-side rendering is getting smaller fast.

https://youtu.be/Z2DU0qLfPIY?t=14m58s

Re:The “Developer Experience” Bait-And-Switch by Noumenon72 on Tuesday September 11, 2018 @11:40PM (#17965392)
I watched 3:15 of that and he was still just getting started. Do you think you could provide a link to the good part?
Re:The “Developer Experience” Bait-And-Switch by mercer on Thursday September 13, 2018 @01:10PM (#17980343)
I can recommend watching the whole thing, but I thought this bit was a pretty cool demo: https://youtu.be/Z2DU0qLfPIY?t=41m20s
Re:The “Developer Experience” Bait-And-Switch by Noumenon72 on Friday September 14, 2018 @11:47PM (#17992878)
Thank you!
Re:The “Developer Experience” Bait-And-Switch by ahsanejaz on Wednesday September 12, 2018 @12:42AM (#17965609)
JS is still required. Sending plain HTML is not the best path forward.
Re:The “Developer Experience” Bait-And-Switch by mercer on Thursday September 13, 2018 @01:13PM (#17980374)
The idea in this case is that you'd have a bit of JS that would take care of updating the DOM, binding event handlers (which is specified and taken care of server-side), and so on.

How Phoenix.LiveView would do this exactly is still being worked on, but [Drab](https://github.com/grych/drab) will probably offer some inspiration.