HenrikJoreteg / HenrikJoreteg/human-javascript

ch05 - "Modules talking to modules"

Open
#45 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
CSS
Stars
82
Forks
7
PR merge metrics
No merged PRs in 30d

Description

The code example in this section demonstrates how you could wire too modules together with eventemitters, but I wonder if it's _too_ simple. It doesn't really demonstrate "why".

I wonder if you could make it a _little_ more elaborate. I think the problem, is that first of all you `setName` on `AndBang` which isn't very intuitive. I expect to set names on people, not apps. Then when setName happens you `/*do something cool*/`. Something which just showed why as well as how these two modules might interact I think would be easier to follow.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.