Giter VIP home page Giter VIP logo

courseracodesamplesreactiveprogramming's Introduction

Coursera Principles of Reactive Programming Samples: Futures & Promises, Rx

src/test/scala/coursera/adventure contains the sample code for the "adventure game" lessons. It introduces the Try[T] monad that makes failure explicit.

src/test/scala/coursera/socket contains the sample code for the "network programming" lessons. It introduces the Future[T] monad that makes latency and failure explicit.

src/test/scala/coursera/combinators and src/test/scala/coursera/Extensions.scala contain various combinators and extensions on Future[T] using both async{ await{} } and val p = Promise[T](); ...; p.future.

src/test/scala/coursera/geocode and src/test/scala/coursera/usgs contain bindings and code for accessing the usgs earthquake and the geonames.org reverse geocode Web services. Earthequakes are exposed as an Observablestream, while rever geocoding of a single lat/lng pair returns a Future`.

src/test/scala/coursera/iterable shows how to do blocking file IO using iterables.

src/test/scala/coursera/rx contains the sample code for all the Rx examples, allowing you to play with Subscription, Observable[T] and Observer[T], the various subjects, and (TODO) schedulers.

Inevitably slides contain typos because we don't have IntelliJ integration in Keynote yet. When in doubt, consult the code samples here for the correct code.

Running the examples

You can build and run some of the examples with sbt and Eclipse or sbt and IntelliJ.

With sbt only: In the sbt console, execute test-only <name of the test you want to run>, for instance test-only coursera.rx.Subscriptions.

With sbt+Eclipse: In the sbt console, execute eclipse, then import the project into eclipse, right-click the name of the test you're interested in, and choose "Run As" > "Scala JUnit Test".

With sbt+IntelliJ: In the sbt console, execute gen-idea, then open the project in IntelliJ, right-click the name of the test you're interested in, and choose "Run 'TestName'".

courseracodesamplesreactiveprogramming's People

Contributors

appliedduality avatar cqfd avatar danieldietrich avatar fupelaqu avatar greentara avatar headinthebox avatar jkonermann avatar josemrecio avatar kamkor avatar samuelgruetter avatar varju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

courseracodesamplesreactiveprogramming's Issues

Project layout

Why all code is in src/test? It is not testing code, so it should go into src/main.

Juan Manuel

Migrate project to SBT

Can you migrate the project to SBT? I've tried but I havent't succeded yet and the rest of code in the course is built using this "simple" tool :-)

Thanks,

Juan Manuel

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.