Design Patterns — Learning Javascript Design Patterns

Gbekeloluwa S. O. Olufotebi
2 min readOct 10, 2017

--

So I am reading the online book, Learning JavaScript Design Patterns by the super cool Addy Osmani, and I’ll be sharing some lessons learnt (while trying to avoid any sorta copyright infringements 🤞🏾).

A design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn’t a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations [reference].

Patterns. Yipee!!

Simply put learning about design patterns is like learning to drive a car, you learn different skills like using trafficator lights to express your intent to make a turn. This does not mean that you put on your trafficators permanently, when applying your learnt skills to real life driving. It is up to you to decide the right scenarios to put on the blinking lights on the left, or on the right, and the right time to put them off.

Not chaotic, just lights.

As using trafficators is to driving, I’d say design patterns are to programming, they can help keep our lives less disorganized or more chaotic by misapplication or over-application.

Next

The Constructor Pattern — Learning Javascript Design Patterns

--

--