reading-notes

Code Fellows Notes

View the Project on GitHub stephnitis/reading-notes

Event Driven Applications

Event Driven Programming

Event-Driven Programming makes use of the following concepts:

1. What native Node.js module allows us to get started with Event Driven Programming?

EventEmitter

An event emitter is a pattern that listens to a named event, fires a callback, then emits that event with a value. Sometimes this is referred to as a “pub/sub” model, or listener.

Further Reading

Terminology

2. What is the value of Object Oriented Programming used in tandem with Event Driven Programming?

3. Consider your knowledge of Event Driven Programming in the Web Browser, now explain to a non-technical friend how Event Driven Programming might be useful on the backend using Node.js.

Event-driven programming is a programming paradigm in which the flow of program execution is determined by events - for example a user action such as a mouse click, key press, or a message from the operating system or another program. Event-driven programming serves the user with the quickest and most accurate responses and this usually translates into better user experience and business gains.

Node docs: events