Hacker GitHub

← All repos

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

Mentions per year 10 mentions · busiest year 2013 (5)
20082026
  1. …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
  2. 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
  3. …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
  4. 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
  5. 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
  6. 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
  7. …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
  8. …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
  9. …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…