Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript : Functional Programming for JavaScript Developers

You're reading from   JavaScript : Functional Programming for JavaScript Developers Functional Programming for JavaScript Developers

Arrow left icon
Product type Course
Published in Aug 2016
Publisher Packt
ISBN-13 9781787124660
Length 635 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Dan Mantyla Dan Mantyla
Author Profile Icon Dan Mantyla
Dan Mantyla
Ved Antani Ved Antani
Author Profile Icon Ved Antani
Ved Antani
Simon Timms Simon Timms
Author Profile Icon Simon Timms
Simon Timms
Arrow right icon
View More author details
Toc

Chapter 13. Advanced Patterns

I hesitated when naming this chapter, Advanced Patterns. This isn't really about patterns that are more complicated or sophisticated than other patterns. It is about patterns that you wouldn't use very frequently. Frankly, coming from a static programming language background, some of them seem crazy. Nonetheless they are completely valid patterns and are in use within big name projects everywhere.

In this chapter we'll be looking at the following topics:

  • Dependency injection
  • Live post processing
  • Aspect oriented programming
  • Macros

Dependency injection

One of the topics we've been talking about continuously during this book is the importance of making your code modular. Small classes are easier to test, provide better reuse, and promote better collaboration for teams. Modular, loosely coupled code is easier to maintain, as changes can be limited. You may remember the example of a ripstop we used earlier.

With modular code of this sort we...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime