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.

An event bus framework for event driven programming

36 pointsby zer0gravityalmost 9 years ago

5 comments

typpytyperalmost 9 years ago
<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 未加载
wzsddtcalmost 9 years ago
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>
kashifalmost 9 years ago
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>
oldmanjayalmost 9 years ago
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.
CarolineWalmost 9 years ago
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 未加载