Functional Programming in JavaScript: A Collection of Hands-on Exercises
jhusain.github.io
jhusain.github.io
What good is Rx when a huge number of your team don't really get FP--let alone FRP.
I know a lot of folks have found these exercises useful. I think the odd format of not showing further material until an exercise is complete was more tailored to the structure of the class that these accompanied rather than something meant for standalone presentation online. That said, the exercises are still quite valuable.
The name clash wouldn't be such a big deal (systems is far away from webdev), but time warp is also very related to transactions and FRP in providing abstractions to deal with change in reactive programs.
That said, I go some strange syntax error, as its a JavaScript editor, and doesn’t highlight unmatched braces or things like that (useful in JavaScript, as it seems to encourage heavy nesting). Not as nice to learn in as a proper IDE.
https://leanpub.com/javascript-spessore/read
https://leanpub.com/javascript-allonge/read
please check it out and tip Reg,frankly his work is outstanding.
"Spessore" is about OOP, but described from unusual angle: it reminds me of "The Little Java, a Few Patterns" in this regard. It's a great description of how and why OOP works, from the most basic concepts up.
Reg's articles on FP in JS and Ruby let me fill the gaps in my knowledge I had because of having no formal education in maths. I was interested in FP for years, and I learned much about it on my own, but Reg's texts made it all "click" for me. I definitely recommend reading all of them; unless you're really familiar with this stuff, from both theoretical and practical sides, I can guarantee that you'll learn something new and useful.
Really, go read them. See also https://leanpub.com/coffeescript-ristretto if you prefer CS.
$('body').append('<style>.lesson,.post{visibility:visible;}</style>');
(I enjoyed reading the content, but found it infuriating to skim.) TypeError: verifier is not a functionAnd a pull request fixing it was submitted back in August: https://github.com/jhusain/learnrx/pull/27
Edit: I've found it, it's curiously related to the "which browser" discussion(!): https://news.ycombinator.com/item?id=8475210 (Posted from the Firefox this time!)
rcfox: These exercises teach functional programming concepts, and that includes composition as it applies to the Observer pattern. I use RX but you could also use bacon JS or build your own lightweight Observable library. You should check out rx.lite.js which is a minimal subset of the library. As for your concerns about including a library, I urge you to reconsider if you can afford the extra download size. The Observer pattern is ubiquitous in software and you'll be amazed how versatile Rx is. At Netflix we use it on the server and client for a wide variety of different tasks. Rx has more than paid for itself 10 times over.
Still in its early days but is very promising for making RxJS as small as you wish.
For those not already familiar with it, Underscore is a wonderful functional programming library that lets you code in a functional style while insulating you from many of Javascript's quirks.
I wanted to read it, then noticed most of the page as blank space, shrugged, and moved on.
jQuery(".lesson").css("visibility","visible")Btw, keep it real and solve in CS like so:
console.log name for name in ["Ben", "Jafar", "Matt", "Priya", "Brian"]
It's a little disappointing because the Observable object sounds like a neat way of solving some complexity that I've run into recently, but I'm not sure that I want to pull in a whole library for it.
We've made great strides recently making Rx more accessible including making it easier to pull in only the things you want/need: https://github.com/Reactive-Extensions/RxJS/releases/tag/v2....
git clone https://github.com/M0ns1gn0r/learnrx.git
And you can keep it forever!