TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

HEY’s UI is 100% HTML

68 pointsby polyrandalmost 5 years ago

11 comments

judofyralmost 5 years ago
I think one understated advantage of serving plain HTML is the reduced surface of things that can go wrong. Once you see that the server has sent a &quot;200 OK&quot; response you know that everything is good and the user will see the content (okay, you still need to worry about the CSS and images loading).<p>In contrast, with a single-page application everything is asynchronous. Have you handled all possible error cases and race conditions? Have you thought about all of the possible immediate states (e.g. one remote call being super slow might cause the UI to be inconsistent&#x2F;confusing)? And all of this logic is running on the client. And that client might also be out-of-date (if they left the tab open). So much complexity!<p>Another side-effect of server-side rendering is that it forces you to make it performant. I&#x27;ve seen so many SPA with a mind set of &quot;oh, this data isn&#x27;t critical so it doesn&#x27;t matter that it takes 2 seconds to load; we&#x27;ll just put it behind a spinner&quot;. Over time this has a tendency to cause applications which does massive amount of slow remote calls to different servers&#x2F;services and multiple spinners in all components. Good luck trying to use these on a mobile phone in transit… Once you put all of the content inside a single call to the server you can&#x27;t get away with this and you preemptively need to care and focus about performance.<p>There are of course many advantages to using SPA, but for me I don&#x27;t think it will ever give me the same <i>calmness</i> as with server-side rendering where I can see all requests in the last 24 hour being successfully responded in &lt;X ms.
smt88almost 5 years ago
This likely doesn&#x27;t mean what you think.<p>His full thread contradicts the headline[1]. They heavily use several JS libraries, including Turbolinks.<p>As far as I can tell, they actually mean that pages are fully server-rendered, rather than having presentation and data served separately and assembled in the browser (i.e. what people now call Jamstack).<p>1. <a href="https:&#x2F;&#x2F;mobile.twitter.com&#x2F;sstephenson&#x2F;status&#x2F;1272608117604397063" rel="nofollow">https:&#x2F;&#x2F;mobile.twitter.com&#x2F;sstephenson&#x2F;status&#x2F;12726081176043...</a>
评论 #23536761 未加载
评论 #23537479 未加载
评论 #23536889 未加载
systemvoltagealmost 5 years ago
People say they don’t like the idea of a page refreshing. But, I like it. I like using old school forms without JavaScript. I think we should build apps without JS, just forms and pure HTML.
评论 #23536838 未加载
评论 #23538194 未加载
评论 #23536849 未加载
eXpl0it3ralmost 5 years ago
Since I&#x27;ve never heard of HEY, here&#x27;s the site: <a href="https:&#x2F;&#x2F;hey.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hey.com&#x2F;</a><p>It&#x27;s basically an email provider, but with different features and interesting ideas on how to manage emails. Don&#x27;t understand why they can&#x27;t provide an actual elevator pitch on the landing page, but have you read their long-winded message and then you still have to click on &quot;How it works&quot;, scroll some more and read some paragraphs just to get an understanding of what it&#x27;s all about...
评论 #23540309 未加载
评论 #23537346 未加载
stuntalmost 5 years ago
Modern browsers got insanely faster to render &quot;plain HTML&quot;. I think you should have a strong reason to manage DOM on client side with JS frameworks.<p>I saw a cookie-wall built with React recently. That&#x27;s just wrong in my opinion.
xliialmost 5 years ago
I never personally used Turbolinks but I heard rather unflattering opinions about it. Basecamp&#x2F;37signals has a long history with Rails so probably they know its ins and outs.<p>Is it feasible to work as - let&#x27;s say - solo developer in the startup?
评论 #23536887 未加载
评论 #23536792 未加载
评论 #23536807 未加载
评论 #23536777 未加载
评论 #23536756 未加载
cryptosalmost 5 years ago
Probably interesting in this context is ROCA, Resource-oriented Client Architecture. The basic idea is to deliver HTML and beeing RESTful, while using JavaScript only to enhance user experience (&quot;Progressive Enhancement&quot;).<p>However, one practical problem with this approach is that HTML forms currently only support POST and GET, although PUT and DELETE were needed in many scenarios. Without JavaScript the only solutions are using POST for everything or using POST + hidden form field with the desired HTTP method and rewriting the request on the server side.<p><a href="https:&#x2F;&#x2F;roca-style.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;roca-style.org&#x2F;</a>
paulus_magnus2almost 5 years ago
I&#x27;m looking for a <i>easy</i> way to introduce programming to my kids. In my time Pascal was the way to do it. There was an integrated IDE, one click build, simple syntax, ways to output text and graphics. User interface &#x2F; forms had to be built from scratch though. Interfacing with mouse meant using interrupts.<p>Nowadays??<p>- Java swing: Java is pretty straightforward but I could never get the layouting engine to do what I wanted.<p>- .NET windows forms. Same as above except using c&#x2F;c++&#x2F;c#<p>- web development. The modern build pipeline with transpilation, gulp, nodeJS etc is way too complex. Perhaps plain HTML + plain CSS + plain JS would be possible to grasp by a kid.<p>- Android?? In theory we get an integrated entry into developing full stack applications in pretty much one language (Java &#x2F; Kotlin) + some XML. The layouting is problematic again. Easy tings that can be done with visual editor + mouse are achievable. More custom layouts quickly enter into the same layouting engine magic we had in Swing, CSS.
评论 #23537365 未加载
评论 #23538324 未加载
评论 #23537133 未加载
milansukalmost 5 years ago
Just to be clear. If I turn off JavaScript, will the site work?
评论 #23537097 未加载
picturalmost 5 years ago
why do people praise this site so much?
评论 #23536894 未加载
评论 #23536865 未加载
antrisalmost 5 years ago
How do you know a website is pure HTML? The developers will tell you about it.
评论 #23536816 未加载