3 ms·
You could write that code to be a little more human readable. That appears to be complicated for the sake of being complicated. Elegance doesn't have to be comp
by wmichelin 11y ago
You could write that code to be a little more human readable. That appears to be complicated for the sake of being complicated. Elegance doesn't have to be complexity, or trying to write as few lines as possible.
http://photos3.meetupstatic.com/photos/event/4/b/c/2/600_436939394.jpeg http://photos3.meetupstatic.com/photos/event/4/b/c/2/600_436...
- bbcbasic 11y agoLooks like idiomatic JS code to me.
- untog 11y agoI'd question the need for that many nested callbacks when you're already using Promises.
- lobo_tuerto 11y agohttp://tritarget.org/blog/2012/11/28/the-pyramid-of-doom-a-javascript-style-trap/ http://tritarget.org/blog/2012/11/28/the-pyramid-of-doom-a-j...
- mrweasel 11y agoFor some reason naming your functions in JavaScript often get meet with strange looks. My colleague just love anonymous functions. I think that at least some like the callback hell, because they think it makes them look clever.
- antod 11y ago'Pyramid of Doom'? Sounds more like something from a certain python web framework to me. ie: http://docs.pylonsproject.org/en/latest/_downloads/pyramid-aliens2-1024X640.jpg http://docs.pylonsproject.org/en/latest/_downloads/pyramid-a...