background preloader


Facebook Twitter

The introduction to Reactive Programming you've been missing. The introduction to Reactive Programming you've been missing (by @andrestaltz) This tutorial as a series of videos If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: - Introduction to Reactive Programming.

The introduction to Reactive Programming you've been missing

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others. Learning it is hard, even harder by the lack of good material. Rx.Observable.prototype.flatMapLatest(selector, [thisArg]) Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

Holy cow. I've read two books, one just painted the big picture, while the other dived into how to use the Reactive library. Request and response Yes. DOM Level 3 XPath in Internet Explorer. Dan Wahlin - Dynamically Loading Controllers and Views with AngularJS/$controllerProvider and RequireJS. Dynamically Loading Controllers and Views Updated: August 30th, 2014 A complete sample application that uses the techniques shown in this post can be found at AngularJS provides a simple way to associate a view with a controller and load everything at runtime using the $routeProvider object.

Dan Wahlin - Dynamically Loading Controllers and Views with AngularJS/$controllerProvider and RequireJS

Routing code is typically put in a module’s config() function and looks similar to the following: While this type of code works great for defining routes it requires controller scripts to be loaded upfront in the main shell page by default. This approach works well in cases where you don’t want all of your controller scripts loaded upfront, but it still doesn’t feel quite right – at least to me. Notice that a single value is passed into the route.resolve() function. Dynamically Loading Controllers The following diagram shows the different players involved in simplifying routes and dynamically loading controllers.

Here’s how it works: Defining Scripts in main.js The routeResolver.js File. Javascript - "Thinking in AngularJS" if I have a jQuery background? AngularJS JumpStart with Dan Wahlin - Udemy. AngularJS continues to trend upward in the number of available jobs (which typically pay quite well) and the number of applications being built.

AngularJS JumpStart with Dan Wahlin - Udemy

So what is AngularJS and why is it so popular? And more importantly - why should take the time to learn it? In a nutshell, AngularJS is a robust Single Page Application (SPA) framework that can be used to build dynamic, client-centric applications that can run in desktop browsers as well as on phones and tablets. You can use AngularJS to build multi-screen applications that perform much like a desktop application but can be viewed and interacted with using a normal browser.

In this course by development expert Dan Wahlin you'll learn essential concepts that you need to know to get started building AngularJS applications such as controllers, scope, views, routes, factories, services and more. The AngularJS JumpStart course is broken down into 6 modules with each module providing source code so that you can follow along with Dan.

Translation from Haskell to JavaScript of selected portions of the best introduction to monads I’ve ever read. (With apologies to John Gruber and A Neighborhood of Infinity.) I know, I know, the world does not need yet another introduction to monads (or yet another article complaining that world does not need yet another introduction to monads). So you’ll be glad to know this isn’t one of those, in the sense that it’s not new. I thought I’d write it because, first, monads are worth knowing about, and second, because I want to get into how they relate to asynchronous programming and I want a baseline in JavaScript to help explain things I might write later. It’s also a valuable exercise in thinking in terms of types. If you’re fine reading a little Haskell, I highly recommend you read the original article, You Could Have Invented Monads (And Maybe You Already Have).

First up, a little back story. Let’s consider an example. Var sine = function(x) { return Math.sin(x) }; And you have another function for taking the cube of a number: Learning JavaScript Design Patterns.