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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

An event bus framework for event driven programming

36 点作者 zer0gravity将近 9 年前

5 条评论

typpytyper将近 9 年前
<p><pre><code> logger.info(&quot;...&quot;); </code></pre> versus:<p><pre><code> EventHandle eh = EBus.getHandle( eventBuilder.executing().name(&quot;some operation&quot;).build()); if (eh.isAllowed()) { eh.addParam(&quot;p1&quot;,&quot;v1&quot;).addParam(&quot;p2&quot;,&quot;v2&quot;).post(); } </code></pre> That&#x27;s a lot of typing.<p>It needs a more compact API.
评论 #12160361 未加载
评论 #12160347 未加载
评论 #12160387 未加载
wzsddtc将近 9 年前
Event Bus often get abused, I made this framework for Android so that the framework can scale as you have more and more features and developers working on it: <a href="https:&#x2F;&#x2F;github.com&#x2F;edisonw&#x2F;PennStation" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;edisonw&#x2F;PennStation</a>
kashif将近 9 年前
Ill see your event thingy and raise you mine - <a href="https:&#x2F;&#x2F;github.com&#x2F;kashifrazzaqui&#x2F;again&#x2F;blob&#x2F;master&#x2F;again&#x2F;events.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kashifrazzaqui&#x2F;again&#x2F;blob&#x2F;master&#x2F;again&#x2F;ev...</a>
oldmanjay将近 9 年前
I vastly prefer typed events. All the really important string values scream &quot;you sure aren&#x27;t testing all of that&quot; to me.
CarolineW将近 9 年前
Dupe: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12159452" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12159452</a><p>But you knew that, because it was you who submitted it.
评论 #12160903 未加载