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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Rolling a virtual DOM

43 点作者 codr4life大约 8 年前

3 条评论

bastawhiz大约 8 年前
This isn't really a "virtual DOM" in any way, though. It only generates strings, which defeats the whole purpose of keeping a separate DOM around.
评论 #13742387 未加载
shortsightedsid大约 8 年前
It would be more interesting if the code was tied with parenscript instead of generating the raw HTML directly. That way you could generate the Javascript needed to manipulate the real DOM. Otherwise, this isn't a virtual DOM, it's only a minimal template engine.
评论 #13742403 未加载
codr4life大约 8 年前
Keep on downvoting, friends; as long as it makes you feel better :)<p>Look, I&#x27;m sorry if I stepped on any ego toes; but I truly think most of the current practice is a mess of bad ideas and duct tape, and I have plenty of experience to back that up. Disagreeing is one thing, shooting messengers at any cost is counter-productive. I&#x27;m sharing ideas, you&#x27;re arguing definitions.
评论 #13743194 未加载
评论 #13742983 未加载
评论 #13743128 未加载