mollerse / frp-article Goto Github PK
View Code? Open in Web Editor NEWSubmitted draft of article about FRP for The Developer/NDC Magazine
Home Page: http://www.ndcmagazine.com/wp-content/uploads/2014/03/NDC_Magazine-1-2014.pdf#page=20
Submitted draft of article about FRP for The Developer/NDC Magazine
Home Page: http://www.ndcmagazine.com/wp-content/uploads/2014/03/NDC_Magazine-1-2014.pdf#page=20
- In addition to being mutable environments like user interfaces are often asynchronous in their behaviour.
+ In addition to being mutable, environments like user interfaces are often asynchronous in their behaviour.
- We see that we can print string when a button is clicked. In most cases, Bacon.JS returns a new event stream or property, but .onValue returns a function to unsubscribe to the events.
+ We see that we can print string when a button is clicked. In most cases, Bacon.js returns a new event stream or property, but .onValue returns a function to unsubscribe to the events.
- ... wraps events from DOM or jQuery events, objects from Node.JS' EventEmitter, or Bacon.fromPromise() creates reactive data from promises.
+ ... wraps events from DOM or jQuery events, objects from Node.js' EventEmitter, or Bacon.fromPromise() creates reactive data from promises.
- As with theoretical FRP, we have events and behaviours in Bacon.js, but instead of calling it a behaviour we call it a Property.
+ As with classical FRP, we have events and behaviours in Bacon.js, but instead Bacon.js calls them event streams and properties.
- We see, if we have a stream of false values and merge it with a stream of true values, the resulting stream will be a stream of both false and true.
+ We see that if we have a stream of false values and merge it with a stream of true values, the resulting stream will be a stream of both false and true.
- We see we take base in mouseMove which we have defined earlier.
+ We see that we take base in mouseMove which we have defined earlier.
- The result is converted to an discrete event that has a value only every 50 milliseconds.
+ The result is converted to a discrete event that has a value only every 50 milliseconds.
- We now have a event stream of a object with the mouse position and a color, only when the mouse button is pressed, and throttled over 50 ms.
+ We now have an event stream of objects with the mouse position and a color, only when the mouse button is pressed, and throttled to 50 ms.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.