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.

How Evan Moran replaced CSS/HTML/JS with OJJS

17 pointsby mikeyandersonover 11 years ago

4 comments

doublerebelover 11 years ago
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.
CoffeeDregsover 11 years ago
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 未加载
rojocaover 11 years ago
Has anyone made a todomvc implementation using this?
ocfxover 11 years ago
&#x27;Instead of the word ‘replace’ let&#x27;s use &quot;abstract away&quot;...&#x27;
评论 #6479597 未加载