The original HN is one of the fastest loading sites I regularly visit. You fixed that pretty good. Disclaimer: I'm on terrible internet connections most of the time and it really makes you hate all this modern web crud. Often "dynamic" sites don't load at all because while the initial HTTP request eventually gets through, one or more of the following XMLHttpRequests or whatever fail, and a lot of the time there is no…
Is this because it's a quickly made demo vs a refined production-ready site, or is it a direct result of the way the sites are made? Can you use GraphQL, React, Express, etc. and make a very fast website?
Hacker News Clone Using GraphQL and React
161–170 of 187 posts
Re: Hacker News Clone Using GraphQL and React
#162I think this is really nicely done. It's probably a little over-engineered for a project of this size, but it shows the power of using all of these libraries together, and I'm sure it was a great learning experience. Does anyone know what tool was used to generate the system architecture diagram? It's really clean and clear - https://github.com/clintonwoo/hackernews-react-graphql#archi...
Sentence 2 on the front page: "It is intended to be an example or boilerplate to help you structure your projects using production-ready technologies." He could have used less tech, but then the project wouldn't have served it's purpose.
Re: Hacker News Clone Using GraphQL and React
#163Separation of concerns went right out the window didn't it? I'd like to see Hacker News Clone Using 300 lines of server-side Python code that works on browsers without JavaScript
Re: Hacker News Clone Using GraphQL and React
#164Edit: Found this: https://www.youtube.com/watch?v=h16qMJ_LCyg
Re: Hacker News Clone Using GraphQL and React
#165Re: Hacker News Clone Using GraphQL and React
#166Re: Hacker News Clone Using GraphQL and React
#167Damn, those load times. This is on all my tests – fast internet or dialup, 2016 desktop or ancient android phone – significantly faster than the real HN. Wow.
Yeesh, thanks for the downvotes on an actually measured result. I'm trying this in Firefox nightly (stylo enabled, webrender not). Even on an old phone over throttled internet, that page is faster than real HN for page transitions, but the same happens on 100Mbps WiFi with my Nexus 5X, or on LAN with my desktop. In all cases, that site is significantly faster than real HN in loading and rendering (I can see the real…
Not sure how to explain that difference.
Re: Hacker News Clone Using GraphQL and React
#168I feel a little mixed about projects like this. It's fantastic to see people share their knowledge, and turn theory into practice. It's very easy to spout on about best practices and good ideas without demonstrating how they can be implemented in the real world. And this application does demonstrate some good ideas. ...But some bad ideas also. I think one problem we have in the frontend world is that developers of ve…
Re: Hacker News Clone Using GraphQL and React
#169I think it is not so hard to achieve something similar to HN. I think the added value of HN is: - Algorithm used to rank news - Community and culture
Re: Hacker News Clone Using GraphQL and React
#170As someone who is trying to learn modern web development, things like this make me feel overwhelmed. So many tools to learn and integrate! Why these tools over other ones? So many tools to choose from on every level of the stack! What the hell is the "right way" to build a web app nowadays? That's what I want to learn. I've figured out how to put up a static page pretty well, but this is so different. Is this site wh…
Take what you like, leave the rest, that's probably the "right way" to build a web app.