Hacker News new | past | comments | ask | show | jobs | submit login
JavaScript Promises in Wicked Detail (mattgreer.org)
13 points by city41 on Feb 10, 2014 | hide | past | favorite | 1 comment



Maybe I've gotten so used to callbacks and taming them into elegant code, but I have yet to see examples of promises where I'm like "ah-ha, that's an awesome example of when this looks a ton nicer". Most examples feel quite trivial and contrived (i.e. foo/bar/baz examples and doSomething() examples).

Can some one please point me to fairly complex examples comparing and contrasting a sample of code that uses callbacks to perform a task and another same that uses promises to accomplish the same task? Thanks in advance.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: