TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Quinn – A web framework designed for things to come

40 点作者 betacar大约 10 年前

9 条评论

justin_vanw大约 10 年前
It&#x27;s a rite of passage to create a crappy, half baked web framework. It&#x27;s a great thing that every web developer should do so that they understand, end to end, the tensions facing the creators of web frameworks, the tradeoffs between the various attempts to balance purity with convenience, and how much &#x27;magic&#x27; you want a framework to perform vs how much should be completely explicit.<p>However, nobody should ever use these frameworks, there are probably 5000 of them floating around out there in github, and beyond an exercise in pedagogy they are mostly half broken and stupid.<p>So to the author of Quinn: don&#x27;t let this get you down, stay excited, but realize that it&#x27;s possible that you can&#x27;t just swoop in and do something great on your first try. OTOH, node.js&#x27; ecosystem is so amateurish and shitty that maybe you actually could.
评论 #9513773 未加载
ianbicking大约 10 年前
Reminds me of WSGI in Python – which is to say, the simplicity of functions that take requests and return responses, and then all your composition techniques are regular programming techniques. (With Promises added into the mix of course, but then you have .then() chaining with similar effect.)<p>It doesn&#x27;t seem like a huge deal, but it&#x27;s so much more convenient, makes it easier to think about the code, modify and rewrite values, all the normal programmy stuff people like to do in programs with values, instead of objects and actions. And yeah, if you use websockets or HTTP&#x2F;2 or some other low-level stuff then it&#x27;s going to break down, but there&#x27;s only a couple of those and they should each just get their own separate layer.
bshimmin大约 10 年前
&quot;It achieves breathtaking performance, made possible by the almost complete absence of features.&quot; While pithy, I&#x27;m not really sure that&#x27;s the best way of selling your product.
评论 #9512849 未加载
评论 #9513072 未加载
jkrems大约 10 年前
As you might have guessed by the missing&#x2F;broken links, the website is still a WIP.
Killswitch大约 10 年前
&gt; Quinn was created to address the utter lack of small, elegant web frameworks in the node ecosystem.<p>Uhhh, that&#x27;s because all those frameworks linked are designed to get you up and running with almost everything you need quickly, not just handling routing and leave you setting up boilerplate.
评论 #9512856 未加载
vortico大约 10 年前
On an unrelated note, do arrow functions inherit the parent context&#x27;s `this` and `arguments` correctly in Node or io.js now?
评论 #9513232 未加载
评论 #9513092 未加载
评论 #9512746 未加载
评论 #9512732 未加载
michaelmior大约 10 年前
Title attribute of the massive image on the top of the page<p>&quot;Huge logo to hide any actual information&quot;
mrmondo大约 10 年前
I&#x27;m not convinced we need more JavaScript frame works also FYI the site loads very slowly on my iPhone 6+, Australia.
评论 #9517542 未加载
DiggityDug7大约 10 年前
&gt; Instead of taking the response as a second argument, the dispatch function is expected to return the response... The moment the function returns, both the status code and all headers are known.<p>I highly doubt this convention will work. You need to be able to return errors or DB information in the response code and headers, which would be impossible since Node is nonblocking. Even something as basic as storing session information in Redis suddenly becomes impossible. This seems like it gives a very minor benefit and causes a whole lot of problems.
评论 #9513639 未加载