MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/webdev/comments/3xiv06/4_javascript_design_patterns_you_should_know/cy575v3/?context=3
r/webdev • u/huashoes • Dec 20 '15
19 comments sorted by
View all comments
23
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 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.
1
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
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.
23
u/[deleted] Dec 20 '15
Very poorly written. See Addy Osmani's patterns for the real deal