DEV Community

Discussion on: The five SOLID principles and why you should use them in your codebase

Collapse
 
jwp profile image
John Peters • Edited

What's not well-known in the Javascript world is that instead of Classes the same principles apply to functions.

In Javascript, functions are true first class objects, just like a class object.

Because of this, we may easily adopt SOLID for our functional programming style. I call this Polymorphic Composition as described here.