Book Image

Learning Underscore.js

By : Alexandru Vasile Pop
Book Image

Learning Underscore.js

By: Alexandru Vasile Pop

Overview of this book

Table of Contents (14 chapters)
Learning Underscore.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Programming Paradigms with Underscore.js

The previous chapter concluded the overview of most of the Underscore features. This chapter will explore how Underscore can be used in the context of different programming paradigms and has the following sections:

  • An overview of the object-oriented programming (OOP) paradigm

  • Examples of how you can use Underscore in an OOP context

  • A description of the functional programming (FP) paradigm

  • Examples of how you can use Underscore in a FP context

The chapter assumes that you are familiar with OOP concepts in general. In this chapter, we will use the programming paradigm interchangeable with the programming style.

The source code for the examples from this chapter is hosted online at https://github.com/popalexandruvasile/underscorejs-examples/tree/master/programming-paradigms, and you can execute the examples using the Cloud9 IDE at the address https://ide.c9.io/alexpop/underscorejs-examples from the programming-paradigms folder.