GithubHelp home page GithubHelp logo

mollerse / frp-article Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 296 KB

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

JavaScript 100.00%

frp-article's People

Contributors

mikaelbr avatar mollerse avatar

Watchers

 avatar  avatar  avatar

frp-article's Issues

Korrektur fra The Developer

- 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.