chuanxshi/javascript-patterns
View on GitHub ↗ ★ 9,344 HTML
JavaScript Design Patterns
10 mentions on Hacker News by 10 people: 1 story, 9 comments · first 2012-01-16 · latest 2014-08-19
20082026
-
…http://kangax.github.io/nfe/#jscript-bugs [2] http://shichuan.github.io/javascript-patterns/ [3] https://github.com/shichuan/javascript-patterns/blob/master/...
comment by XaspR8d · 2014-08-19 · in A JavaScript Quality Guide -
Considered adding a Github Issue for this? https://github.com/shichuan/javascript-patterns/issues (or do you mind if I add one for you?)
comment by voltagex_ · 2014-01-02 · in Javascript patterns -
…to be an antipattern and advises you to instead use function expressions at all times ( https://github.com/shichuan/javascript-patterns/blob/master/... ). I'm really skeptical about this. Using function expressions has some quite subtle…
comment by rnd33 · 2014-01-01 · in Javascript patterns -
I opened this page: https://github.com/shichuan/javascript-patterns/blob/master/... and saw this pattern used several times: if (value == 0) { return result0; } else if (value == 1) { return result1; } else if (value == 2) { return…
comment by Stratoscope · 2013-03-18 · in JavaScript Patterns Collection -
I can't for the life of me figure out what the right-hand side of this is doing (from https://github.com/shichuan/javascript-patterns/blob/master/... ): var global = (function () { return this || (1, eval)('this'); }()); Why not just use…
comment by eric_the_read · 2013-03-18 · in JavaScript Patterns Collection -
Recommended usage: git clone https://github.com/shichuan/javascript-patterns.git cd javascript-patterns/ cd design-patterns/ ls
comment by ivan_ah · 2013-03-18 · in JavaScript Patterns Collection -
…be more interesting to have a bit of an explanation. That why UML diagrams are usefull. right now https://github.com/shichuan/javascript-patterns/blob/master/... is hard to understand. I would propose a simple exemple for the builder…
comment by camus · 2013-03-18 · in JavaScript Patterns Collection -
…handy list to have. (A nav bar that didn't obscure text on narrower windows would also be nice) [0] https://github.com/shichuan/javascript-patterns/blob/master/...
comment by narsil · 2013-03-18 · in JavaScript Patterns Collection -
…Use something like this: http://ejohn.org/blog/simple-javascript-inheritance/ Or this: https://github.com/shichuan/javascript-patterns/blob/master/... There are a lot of problems not even related to JavaScript that are way worse than the…
comment by voidr · 2012-03-31 · in Google is developing programming techniques to simplify Web development -
▲ 1
JavaScript Patternsstory by pinchyfingers · 2012-01-16 · 0 comments