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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Non-framework approach to JavaScript apps - hexagonal.js

30 点作者 andrzejkrzywda超过 12 年前

7 条评论

ganarajpr超过 12 年前
When I went ahead and had a look at one of the examples of hexagonal.js, Misko Hevery's answer in quora <a href="http://www.quora.com/Ember-js/Which-one-of-angular-js-and-ember-js-is-the-better-choice" rel="nofollow">http://www.quora.com/Ember-js/Which-one-of-angular-js-and-em...</a> immediately came to my mind. He notes that there are 3 ways to bind data to view. 1 ) in the code - jquery way 2 ) In html bindings - angular way 3 ) in a metadata file.. which is the glue that is professed in this library.
评论 #5264391 未加载
skywalk超过 12 年前
According to the page, it's neither a framework, nor a library - isn't that a bit counterintuitive? That makes it sounds as if it is beyond any of the existing styles of code reuse in software development, which is not the case.<p>I'm sure many would identify it as a library in the classical sense, since it is a bundle of code you include in your application and make calls to.
评论 #5264499 未加载
评论 #5266826 未加载
MatthewPhillips超过 12 年前
Maybe I'm not "getting it", but what is the difference between:<p><pre><code> After(@useCase, "askForName", =&#62; @gui.showAskForName()) </code></pre> vs.<p><pre><code> @useCase.askForName() @gui.showAskForName() ?</code></pre>
评论 #5264991 未加载
评论 #5264949 未加载
bestest超过 12 年前
I'd love to check it out, but I had too much coffee. Pun intended.
warfangle超过 12 年前
Don't call something .js if it's all in .coffee.
评论 #5264497 未加载
bjfletcher超过 12 年前
Is hexagonal.js basically a very simple state machine framework? :) E.g., <a href="https://github.com/pluginaweek/state_machine" rel="nofollow">https://github.com/pluginaweek/state_machine</a>
irickt超过 12 年前
Previous discussion: <a href="http://news.ycombinator.com/item?id=5237977" rel="nofollow">http://news.ycombinator.com/item?id=5237977</a>