Design Patterns section to FreeCodeCamp Curriculum

We should add a Design Patterns section in FreeCodeCamp Curriculum because JavaScript Framework comes and go but the fundamental doesn’t which some framework are base on.

1 Like

I think we already have some material:

1 Like

Singleton is meaningless in Javascript. That pattern is called “an object”.

First class functions make oodles of patterns obsolete. A language with first class functions makes Command a very simple pattern indeed, to the point of not even worth calling it a pattern. It’s just another datatype. Similar with Visitor, since any iterator can take an arbitrary callback, with no need to otherwise dress it up.

Design patterns do vary by language. Monads for example are a design pattern, but JS isn’t really capable of expressing them clearly, notwithstanding the async/await keywords that enable just one particular monad.