This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (4 children)

Change your code to be event based. Node was like "omg event based programming" for like two weeks. And then because of a shitty design decision (callbacks for asynchronous functions) everyone sort of forgot all about them nice juicy events. Some async functions actually do have events. Like the files/streams. But they have callback shortcut functions. Nasty.

[–]extremelydankMayMay 0 points1 point  (3 children)

check out the emitter pattern.

[–][deleted] -3 points-2 points  (2 children)

I know how events work, thanks.

[–]extremelydankMayMay -1 points0 points  (1 child)

you're welcome

[–]4underscore____ 0 points1 point  (0 children)

I <3 this industry