Re:Show HN: Textures.js, SVG Patterns for Data Visualization
by ttty on Wednesday March 18, 2015 @06:51PM
(#9229183)
Image you have an UI which talks to this. For example you have a button on/off. How would you do?
Compare the previous with this one.
I also hate the non standard constructor: this should be like this
[ Parent
| on HN ]
Re:Show HN: Textures.js, SVG Patterns for Data Visualization
by siddboots on Wednesday March 18, 2015 @11:53PM
(#9230118)
"heavier: this.button.on" has ambiguous semantics. Do libraries really use this pattern?
Also, use of the "new" keyword is contentious. You can hardly pretend that it is best practice.