As Streams are effectively EventEmitters, do people still use EventEmitters? Is there a difference? I suppose if a stream is only readable or writable, an EventEmitter can be absolutely anything and just emit lots of nonsense if you wanted?
-
Show this thread
-
Replying to @varjmes
Event emitters are inherently of creating an M:N relationship in code. Think of it as a central point through which all data in your app can flow (we do this in Choo). Streams are a contrained version of this. Usually it's done to create a 1:1 or 1:M relationship.
2 replies 0 retweets 2 likes
Replying to @yoshuawuyts @varjmes
Oops, jargon. To make sure nothing's unclear: - M:N = many-to-many; multiple data producers, multiple data consumers. - 1:M = one-to-many; single producer, multi consumer - 1:1 = one-to-one; single, single
7:01 AM - 23 Aug 2018
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.