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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Introducing hexagonal.js

59 点作者 yashke超过 12 年前

8 条评论

btipling超过 12 年前
Why not call it hexagonal.coffee? Why do CoffeeScript libraries get a .js extension? Yes I realize it works for JavaScript too, but it's weird to go see a library with *.js in the name and then to find only CoffeeScript in the documentation.
评论 #5239105 未加载
评论 #5238250 未加载
评论 #5238466 未加载
irickt超过 12 年前
Hexagonal uses Raganwald's metaprogramming ideas. Follow the links from the dependency at <a href="https://github.com/gameboxed/YouAreDaBomb" rel="nofollow">https://github.com/gameboxed/YouAreDaBomb</a>.<p>This shows the beauty of Coffeescript syntax for functional programming. For a deep understanding read Raganwald's new book <a href="http://ristrettolo.gy" rel="nofollow">http://ristrettolo.gy</a>.
评论 #5238320 未加载
评论 #5239263 未加载
ricardobeat超过 12 年前
Isn't that glue going to fall apart when you start working with asynchronous methods? I might be suffering from tunnel vision, but IMO this is asking for an evented model:<p><pre><code> class Glue constructor: (@useCase, @gui, @storage)-&#62; @useCase.on askForName : @gui.showAskForName nameProvided : @gui.hideAskForName greetUser : @gui.showGreetMessage restart : @gui.hideGreetMessage @gui.on restartClicked : @useCase.restart confirmName : @useCase.nameProvided</code></pre>
评论 #5238694 未加载
tinco超过 12 年前
This looks very cool, I've recently finished a Javascript application that used AOP for connecting the View to the Model and it rocked. I think I implemented up more or less this framework, but less generic.<p>The name is an issue though, hexagonal.js doesn't seem to have to do anything with what this framework does. If it is a framework that applies AOP to MVC, why not pick a name that relates to that? There isn't even a mention of AOP anywhere in the introduction.
robotmay超过 12 年前
This looks quite neat and the Rails example (<a href="https://github.com/hexagonaljs/rails-example" rel="nofollow">https://github.com/hexagonaljs/rails-example</a>) is interesting. I'll definitely have a play around with it later in my never-ending quest to find JS libraries that don't make me want to snap my computer in half.
seivan超过 12 年前
Woaah, it's a cool idea, but I wonder how productive one would be in it. Will have to give it a shot later.
评论 #5238296 未加载
Rocky_Outcrop超过 12 年前
How can it be a good thing to follow the MVC framework on both the client side and the server side, as it says in it's philosophy, when the client side is the V in MVC?
评论 #5238074 未加载
评论 #5238177 未加载
评论 #5240190 未加载
x1024超过 12 年前
There's far too many typos for me to have any amount of confidence in the code itself.<p>Sorry, but I can't trust my business with people who cannot even be bothered to write proper English for their introduction.
评论 #5238886 未加载
评论 #5238175 未加载
评论 #5238226 未加载
评论 #5238099 未加载