Live data from Hacker News

Show HN: Open-source StackOverflow-like service

paizaqa.herokuapp.com

11–20 of 51 posts

Re: Show HN: Open-source StackOverflow-like service

#13

Kudos for effort, but for the life of me I cannot understand why the hell is "load empty shell of a page and then asynchronously fetch bits and pieces of content, ruining the UI along the way" is so prevalent these days.

That's how a basic angular.js app with client side templating works if it has to fetch the the data from the server using AJAX calls.

A common optimization would be to preload the served javascript with the initial AJAX results. This still means rendering the content on the client side, but the content isn't fetched asynchronously. Another optimization is to actually render all the DOM elements in advance on the server, and only use client side rendering for updates.

Re: Show HN: Open-source StackOverflow-like service

#16

Kudos for effort, but for the life of me I cannot understand why the hell is "load empty shell of a page and then asynchronously fetch bits and pieces of content, ruining the UI along the way" is so prevalent these days.

It's terrible indeed, and it works only if javascript is enabled.

Re: Show HN: Open-source StackOverflow-like service

#17
The article is missing what I think is one of the most important parts, and that's the reasoning behind using a MEAN stack instead of a more classic approach using a standard back-end language like Ruby, Perl or Python, because I honestly fail to see how this is easier than using a framework like Django or RoR.

Re: Show HN: Open-source StackOverflow-like service

#18
post #13

Kudos for effort, but for the life of me I cannot understand why the hell is "load empty shell of a page and then asynchronously fetch bits and pieces of content, ruining the UI along the way" is so prevalent these days.

That's how a basic angular.js app with client side templating works if it has to fetch the the data from the server using AJAX calls. A common optimization would be to preload the served javascript with the initial AJAX results. This still means rendering the content on the client side, but the content isn't fetched asynchronously. Another optimization is to actually render all the DOM elements in advance on the serv…

This, I assume, is all done because 99% of web sites are trivially done with server-side HTML generation and that is not hipstery enough.

Re: Show HN: Open-source StackOverflow-like service

#19

Kudos for effort, but for the life of me I cannot understand why the hell is "load empty shell of a page and then asynchronously fetch bits and pieces of content, ruining the UI along the way" is so prevalent these days.

Isomorphic/universal React just about solves this. Taken all the way, you get the full UI and clickable navigation links before any javascript loads.
Post reply on HN