Could you please provide the link to the Firefox add-on for visualization of csp?
@ernesto-dev9 жыл бұрын
On the third example, he states that with event streams like #RxJS, you would need to keep state in order to handle the complex hover interaction (i.e. trigger the hover only if the mouse stays for a while on the element). That's outright wrong. With FRP/RxJS you can totally control that with pure funcional programming, no state keeping whatsoever. And to be honest, apart from the visualizer plugin in the developer tools panel, everything else is not that revolutionary. The overall concept of this csp thing is not all too different than classic FRP/RxJS. Or am I missing something?
@ernesto-dev9 жыл бұрын
Ernesto García Actually it's even worse that I thought at first. He's actually keeping state up there in the sample code for the third example (the hover one). He needs a variable and an 'if' statement to check if the tooltip has been canceled before the timeout expires. With #RxJS one can express that functionality with no variables, no explicit state keeping, no explicit 'if' statement, just pure functional programming.