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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Write Less JavaScript

5 点作者 avand超过 10 年前

2 条评论

jay_kyburz超过 10 年前
<p><pre><code> Defer view logic to CSS whenever possible. Keep data in the HTML. </code></pre> Ugg, hate the idea of having logic in my CSS. CSS is for style information. How things should look, not what should be shown. &quot;whenever possible&quot; also rings alarm bells for me. There should be one place for logic.<p>HTML is also View if you ask me and I like to keep my Model separate from my View.<p>I dont know what people have against JavaScript. I say write more javaScript and less HTML and CSS.
评论 #8755823 未加载
markuz超过 10 年前
This is wrong in so many levels. Have you ever heard about React and the advantage of the virtual DOM. And about famo.us<p>For toy projects like this, I guess this is fine. But lets get real....