Skip to content

mattpodwysocki/jsconf.co-2015-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functional and Asynchronous JavaScript Tutorial - JSConf.CO 2015

Learn RxJS

This is a series of interactive exercises for learning the Reactive Extensions for Javascript (RxJS). So why is the title "Functional Programming in Javascript"? Well it turns out that the key to learning RxJS is training yourself to use functional programming to manipulate collections. Functional programming provides developers with the tools to abstract common collection operations into reusable, composable building blocks. You'll be surprised to learn that most of the operations you perform on collections can be accomplished with five simple functions:

  1. map
  2. filter
  3. mergeAll
  4. reduce
  5. zip
  6. flatMap

Here's our promise to you: if you learn these 6 functions your code will become shorter, more self-descriptive, and more durable. Also, for reasons that might not be obvious right now, you'll learn that these five functions hold the key to simplifying asynchronous programming. Once you've finished this tutorial you'll also have all the tools you need to easily avoid race conditions, propagate and handle asynchronous errors, and sequence events and Ajax requests. In short, these 6 functions will probably be the most powerful, flexible, and useful functions you'll ever learn.

More Hands on Labs

Below are some additional lessons that you can do to better improve your code starting with functional programming and RxJS knowledge.

You can use JSBin with RxJS and RxJS-DOM preloaded so you can use your imagination to create something to show off to the workshop!

  1. Imperative array handling
  2. Functional array handling
  3. Functional event stream handling
  4. Observables vs Promises
  5. DOM Events
  6. Combining two orthogonal Observables
  7. AND and OR combinators
  8. Correlational combinators
  9. Cold and Hot Observables
  10. FlatMap: the mother of all operators

RxJS Koans

If you prefer to learn using unit testing and Koans, try the RxJS Koans. Also, want to add more lessons! Send a pull request!

RxJS Resources

Community Examples

Challenge yourself to build something amazing during your time here. Using RxJS and your imagination, create an application that truly shows the power of RxJS. Here are some community examples to help you along the way.

RxJS Examples

AngularJS and RxJS Examples

React and RxJS Examples

RxJS Based Frameworks

LICENSE

The MIT License (MIT)

Copyright (c) 2015 Matthew Podwysocki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

JSConf.CO 2015 Workshop on Async JavaScript and RxJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published