concept one thing in category javascript

This is an excerpt from Manning's book Node.js in Practice.
Web, desktop, and mobile user interfaces have one thing in common: they’re event-based. Events are a great paradigm for dealing with something inherently asynchronous: the input from human beings. To show how EventEmitter works, we’ll use a music player as an example. It won’t really play music, but the underlying concept is a great way to learn how to use events.
One thing we’ve learned through our experimentation is that smaller modules matter. Larger modules tend to be hard to maintain and test. Node enables smaller modules to be stuck together simply to solve more and more complex problems.
It’s important to clearly articulate the purpose of your module. If you can’t boil it down to one sentence, it may be doing too much. Here’s where an important aspect of the Unix philosophy comes in: make each program do one thing well.