4 ms·
Promises are good solution to tackle call back problems. But once you spend a little time with Functional Reactive Programming, You never want to go back to any
by tegeek 12y ago
Promises are good solution to tackle call back problems. But once you spend a little time with Functional Reactive Programming, You never want to go back to any imperative solution.
Functional Reactive Programming eliminates every scenario where you need a promise. FRP models "past, present & future" in a sense that you never need to use any "promises" library again. It brings such a higher level abstraction to your "time" dependent code, that you don't have to maintain state in your code.
BaconJS is one of the simplest FRP library which brings simplicity & power to your JS projects.
http://baconjs.github.io/ http://baconjs.github.io/
- spion 12y agoPromises aren't really imperative - they're just not suited to handling streams of events, only single values. Also, isn't suggesting FRP in place of promises like suggesting streams instead of callbacks, or arrays of values instead of values?
- domenicd 12y agoScalar variables are a good solution to tackle register problems. But once you spend a little time with Linked List Programming, You never want to go back to any scalar solution. Linked List Programming eliminates every scenario where you need a scalar. LLP models "beginning, middle & end" in a sense that you never need to use any "scalars" library again. It brings such a higher level abstraction to your "space" dependent code, that you don't have to maintain state in your code. JSClass's Linked List is one of the simplest LLP library which brings simplicity & power to your JS projects. http://jsclass.jcoglan.com/linkedlist.html http://jsclass.jcoglan.com/linkedlist.html