r/webdev • • Dec 20 '15

4 JavaScript Design Patterns You Should Know

https://scotch.io/bar-talk/4-javascript-design-patterns-you-should-know
115 Upvotes

19 comments sorted by

View all comments

23

u/[deleted] Dec 20 '15

Very poorly written. See Addy Osmani's patterns for the real deal

1

u/jewdai Dec 20 '15

Addi is a great person to follow. I've learned so much about the chrome dev tools in 5 minutes of watching a video of him.

-3

u/erishun expert Dec 20 '15 edited Dec 20 '15

It's not poorly written, it's a good, simple, short breakdown of the gist. Obviously it's not the be-all end-all, but it's not trying to be.

6

u/[deleted] Dec 20 '15

Since we are returning an object, we will prefix the prototype object with a function

Erm... what? You're wrapping it in a function, and yes, it DOES make a difference.

The section on the observer pattern and MVC was just plain wrong, which is when I stopped reading.

0

u/[deleted] Dec 20 '15

[deleted]

2

u/[deleted] Dec 20 '15

Never thought I'd say /r/javascript has acted as the voice of sanity.