MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/3xiv06/4_javascript_design_patterns_you_should_know/cy58pbo/?context=3
r/webdev • u/huashoes • Dec 20 '15
19 comments sorted by
View all comments
Show parent comments
-3
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 functionErm... 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.
6
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.
0
[deleted]
2 u/[deleted] Dec 20 '15 Never thought I'd say /r/javascript has acted as the voice of sanity.
2
Never thought I'd say /r/javascript has acted as the voice of sanity.
-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.