Re:Why is modern web development so complicated?
by robertoandred on Wednesday August 07, 2019 @11:17PM
(#20641553)
Except no one is going to want to wait for a page refresh just to update a bit of data.
Re:Why is modern web development so complicated?
by Nyandalized on Thursday August 08, 2019 @05:13AM
(#20642937)
Page refreshes can be a delta increment, it doesn't have to download everything again
> Data being "an sql query away" on the server is similar to being "an AJAX call away" on the client.
This is a bit disingenuous, since sql calls in most back end languages are synchronous. Also an ajax call needs to update the UI to tell the user something is happening. This might mean disabling controls, showing spinners etc. All of this goes away if you only use server-side rendering since form requests are natively handled by the browser.
> It's certainly not the case that asynchronicity makes you write shit code.
But it expands the number of cases you have to deal in the UI, to show all the loading states, error states etc.