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.

Build your own web framework

195 pointsby jeremylevyalmost 3 years ago

19 comments

marmadaalmost 3 years ago
This is too funny. I predicted that when I entered this post the first comment would be HN people bemoaning complexity. And indeed it was.<p>The commenter&#x27;s proposed solution was WASM. Wasm doesn&#x27;t solve the issues in this post. What does this post talk about:<p>- serving content from the edge (wasm doesn&#x27;t do anything there) - asset optimization (wasm doesn&#x27;t help)<p>- pre-rendering complex pages to static HTML+css (wasm doesn&#x27;t help)<p>More broadly, minimizing network trips, pre-fetching data, etc. etc. these are all things where Wasm won&#x27;t help any more or less than JS.
评论 #32283658 未加载
评论 #32282647 未加载
glenngillenalmost 3 years ago
Look, I can sometimes be pretty quick to bemoan the state of modern web dev. I don&#x27;t do it enough these days to be able to keep up with the current trend. So once or twice a year when I get the itch I inevitably spend more time than I should screaming about having to learn React&#x27;s latest way to do some new thing, or that everyone has switched from npm to yarn and back again, or... there&#x27;s always something. Lots of somethings.<p>The discourse on HN whenever this topic comes up is tiresome though and not at all to the level you&#x27;d expect on most topics from this audience. It&#x27;s the unfiltered dumping of that emotional reaction I outlined above.<p>You know what? You can still build things the old way! Nobody has taken that away. It still works exactly as you&#x27;d expect. Do a bunch of HTML, lay it all out using tables, do inline styling. Host it on an Apache server. It&#x27;ll be fine.<p>To think these were the glory days of dev though just washes away the fact that it was &quot;good enough&quot; for the subset of people that were lucky enough to have access to the internet back then. who were probably only a hop or two away from an academic backbone that was servicing them. Who, if you were in a relatively remote part of the planet like myself, would likely have a caching proxy server in there to improve the performance because most universities being able to cache the content of a huge part of the internet was a totally feasible undertaking back then.<p>But now half the planet is connected. With huge variance in the speed and latency on which they connect, huge variance in the types of devices they&#x27;re using, incredibly distributed relative to where the content is served, and with entirely new expectations for the type of content they want and the way they expect to interact with it.<p>Sure, modern dev has lots of room for a simpler devex. Read through the OP though and you&#x27;ll see it&#x27;s because there has been a shift to prioritize the experience of the end users above that of the developers. That&#x27;s what those list of features are for. You&#x27;re still free to ignore it and build stuff the old way, just accept whose needs you&#x27;re putting first in the process.
评论 #32283800 未加载
tambourine_manalmost 3 years ago
What a sad state “modern” web dev is in.<p>I’m glad that I’m living in a much faster and simpler world, but I fear, for end users and developers alike, that it is an ever shrinking one.<p>I really can’t understand the appeal of what, to my eyes, amount to endless layers of needless complexity.<p>I wish articles such as this one were more common:<p><a href="https:&#x2F;&#x2F;alexcabal.com&#x2F;posts&#x2F;standard-ebooks-and-classic-web-tech" rel="nofollow">https:&#x2F;&#x2F;alexcabal.com&#x2F;posts&#x2F;standard-ebooks-and-classic-web-...</a><p>This is the web I want and love.
评论 #32282665 未加载
评论 #32283980 未加载
评论 #32283501 未加载
评论 #32282983 未加载
评论 #32283530 未加载
评论 #32283555 未加载
siddontangalmost 3 years ago
As a back-end engineer focusing on distributed database, I nearly have no knowledge of web development. I rarely write JS, can&#x27;t tune CSS, etc.<p>But when I met Next.js and Vercel, I found that they are very friendly to beginners. I can build the demos on the web, more beautiful and intuitive (Previously, I had only to build demo on the console).
wmfivalmost 3 years ago
I&#x27;m struggling with the idea that React is a primitive used to build a Web Framework.
评论 #32281336 未加载
评论 #32278958 未加载
评论 #32279165 未加载
评论 #32280285 未加载
评论 #32279135 未加载
评论 #32280092 未加载
skadamatalmost 3 years ago
Do we ever think we&#x27;ll collapse all of the complexity layers for programming on the web? Coming from other languages, I&#x27;m finding that the agreed-upon web standards make development super hard (we have to collectively build these towers of babel on top of them, since we can&#x27;t fix the underlying stuff)<p>I guess WASM maybe is one possible solution here
评论 #32281501 未加载
评论 #32281331 未加载
评论 #32281345 未加载
评论 #32282257 未加载
评论 #32281361 未加载
评论 #32285507 未加载
评论 #32281530 未加载
Joel_Mckayalmost 3 years ago
This is precisely the most common mistake doomed project managers make.<p>There are aspects to modern web interfaces which one cannot know a priori. Thus, the first design will almost always be implemented incorrectly, and it is usually better to choose an existing framework.<p>Many have found these useful:<p><a href="https:&#x2F;&#x2F;www.phoenixframework.org" rel="nofollow">https:&#x2F;&#x2F;www.phoenixframework.org</a><p><a href="https:&#x2F;&#x2F;keystonejs.com" rel="nofollow">https:&#x2F;&#x2F;keystonejs.com</a><p><a href="https:&#x2F;&#x2F;quasar.dev" rel="nofollow">https:&#x2F;&#x2F;quasar.dev</a><p><a href="https:&#x2F;&#x2F;angular.io" rel="nofollow">https:&#x2F;&#x2F;angular.io</a>
moojdalmost 3 years ago
This is a nice overview of modern front-end development but I&#x27;m constantly disappointed with what &#x27;web framework&#x27; means in node-land. None of these things are strictly necessary when building a web app but authz&#x2F;authn, user management, databases, server-side logic vs client-side logic, are pretty much always needed. When I see the phrase &#x27;web framework&#x27; these are the things I am interested in seeing and they all seem to be treated as afterthoughts in the node community. Most tutorials either point you to paid&#x2F;proprietary services or to really bad local solutions like back in the hotscripts days of php. If you google &#x27;node user login&#x27; the first tutorial has you storing a password in plain text and checking the password with the equivalent of &#x27;==&#x27;. The first result when googling the same for php, python, and ruby all returned solutions using a hash.
评论 #32279137 未加载
评论 #32282681 未加载
评论 #32279322 未加载
评论 #32279188 未加载
评论 #32279956 未加载
评论 #32282086 未加载
评论 #32280705 未加载
edgyquantalmost 3 years ago
React made me like frontend for the first time since I was writing html by hand with maybe some PHP. Next has made me love full stack again, I just wish the api server was express by default.
评论 #32282498 未加载
dfeealmost 3 years ago
I’ve been looking a lot at RedwoodJS, but it doesn’t seem to be “just right”. Don’t know if I’m bike-shedding, either.<p>I do think React is a requisite for a rich application (not blog). I think auth + DB + deploy + fe&#x2F;be in one asset is challenging. I certainly get why folks build their own constantly. But you burn out before you make any real progress.<p>I’m not sure we’re really achieving any higher level abstraction on our technologies.
评论 #32283699 未加载
henningalmost 3 years ago
This is one of the stupidest, most circuitous ways to get a simple application up and running since the days of the J2EE Pet Shop example.
评论 #32280564 未加载
评论 #32283703 未加载
soylentgrahamalmost 3 years ago
Having this page open for ~10 seconds on my iphone SE (I believe recently hailed as the greatest of phones) crashes safari every time.<p>Can someone able to read the page tell me if this article is ironic or not?
评论 #32283421 未加载
rgloveralmost 3 years ago
For people concerned about the growing complexity of all this stuff, I&#x27;d appreciate you taking my approach for a spin: <a href="https:&#x2F;&#x2F;github.com&#x2F;cheatcode&#x2F;joystick" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cheatcode&#x2F;joystick</a>. It&#x27;s intentionally boring and simplistic.<p>Good ol&#x27; fashioned HTML, CSS, and full-stack JavaScript (Node.js on the back-end).
kolunaalmost 3 years ago
The more I see these announcements, the more I wonder - what is the appeal of something like Vercel and the likes? On the surface it seems like AWS&#x2F;GCP&#x2F;Azure&#x2F;whichever big cloud provider can replicate literally everything they build within their infrastructure quite easily. Why host your core infra in a BigCo cloud and then the site on Vercel?
评论 #32279810 未加载
评论 #32279937 未加载
评论 #32279403 未加载
knoebberalmost 3 years ago
Thanks, but I&#x27;ll stick with phoenix + fly.io
pyrosshalmost 3 years ago
I prefer the traditional approach. Golang + fly.io is what I use way easier to deploy anywhere you want and closer to your users.
avl999almost 3 years ago
Why do front-end developers have such masochistic tendencies to put themselves through this kinda crap?
upupandupalmost 3 years ago
not sure how this differs with AWS, you can do more at less cost than Vercel
评论 #32279245 未加载
评论 #32279116 未加载
评论 #32279153 未加载
steventeyalmost 3 years ago
this is pretty incredible