Javascript design paterns by Addy Osmani Are any of the patterns deprecated or replaced by es6?

I was trying to learn redux and could not get by head around it. Then I wrote a tutorial - didn’t publish, and it got me understanding how the whole thing worked.

I was thinking of learning the design patterns covered in that book in a similar way. Meaning that I would spend a lot of time on it, and if the notes I take are as clear as the redux tutorial I might start publishing them. Mainly to have something extra on my resume.

Anyway. I know for example that the module design pattern (function(){})() is updated in es6 with the import export keywords. Are there other patterns that are updated too

1 Like

He goes through the ES5 / ES6 differences at ECMAScript 6 equivalents in ES5

2 Likes

Thanks.

So I’m assuming the actual patterns do not change. The way they are written might have but not the actual pattern. For example, a Constructor Pattern or Singleton Pattern or a Observer Pattern and so on, are still needed even if the way we might write them might have changed a bit?

It might be a silly newbie question but beyond the syntax changes, the patterns are still valid?

Yes, the patterns are still valid. These patterns have been used and been refined over the course of many decades, some going back to the 1950’s.

These patterns are not going to change any time soon.

Thanks a lot

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.