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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How Evan Moran replaced CSS/HTML/JS with OJJS

17 点作者 mikeyanderson超过 11 年前

4 条评论

doublerebel超过 11 年前
This concept of &#x27;JS all the way down&#x27; is what hooked me on Titanium Mobile (crossplatform app framework) as soon as I started using it. It&#x27;s a much lighter cognitive load, since I&#x27;m not constantly switching between varied featuresets and syntax of templates&#x2F;HTML&#x2F;CSS&#x2F;JS.<p>One of my favorite features, is that any piece of the app can instantly become a reusable, extendable module for another app. Since it&#x27;s &#x27;just JS&#x27; it always ports. In this way I share UI widgets between web apps and mobile apps.<p>Generated CSS and HTML should be syntactically perfect, and JS has much better error handling than either CSS or HTML. With those traits, the resulting code can be better than a human could write on their own.<p>The concept of JSON syntax for DOM creation has been around a long time -- HAML, JsonML, jQuery... And although the JS syntax can be verbose, CoffeeScript object notation is available, and quite similar to HAML and SASS.<p>I hope we see a lot more of this.
CoffeeDregs超过 11 年前
I&#x27;m a little confused. Didn&#x27;t ExtJS, Dojo, various jQuery plugins, etc do this same kind of thing years ago? And didn&#x27;t we kind of find out that JS + CSS + HTML was acually a pretty nice separation of markup, formatting and functionality?
评论 #6479670 未加载
rojoca超过 11 年前
Has anyone made a todomvc implementation using this?
ocfx超过 11 年前
&#x27;Instead of the word ‘replace’ let&#x27;s use &quot;abstract away&quot;...&#x27;
评论 #6479597 未加载