Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering JavaScript Design Patterns
  • Table Of Contents Toc
Mastering JavaScript Design Patterns

Mastering JavaScript Design Patterns

By : Simon Timms
4 (7)
close
close
Mastering JavaScript Design Patterns

Mastering JavaScript Design Patterns

4 (7)
By: Simon Timms

Overview of this book

If you are a developer interested in creating easily maintainable applications that can grow and change with your needs, then this book is for you. Some experience with JavaScript (not necessarily with entire applications written in JavaScript) is required to follow the examples written in the book.
Table of Contents (5 chapters)
close
close

Chapter 4. Structural Patterns

In the previous chapter, we looked at a number of ways to create objects in order to optimize, for reuse. In this chapter, we'll take a look at structural patterns; these are patterns that are concerned with easing the design by describing simple ways in which objects can interact.

Again, we will limit ourselves to the patterns described in the GoF book. There are a number of other interesting structural patterns that have been identified since the publication of the GoF, and we'll look at those in Part 2 of the book.

The patterns we'll examine in this chapter are:

  • Adapter
  • Bridge
  • Composite
  • Decorator
  • Façade
  • Flyweight
  • Proxy

Once again, we'll discuss if the patterns that were described years ago are still relevant for a different language and a different time.

Adapter

From time to time, we will need to fit a round peg in a square hole. If you've ever played with a child's shape sorting toy, then you may have discovered that you...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering JavaScript Design Patterns
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon