JavaScript for Line of Business Applications
596.1K views | +2 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tags: 'React', 'RxJS'. Clear
Scoop.it!

MobX - Simple, scalable state management

MobX - Simple, scalable state management | JavaScript for Line of Business Applications | Scoop.it

MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP). The philosophy behind MobX is very simple:

Anything that can be derived from the application state, should be derived. Automatically.

which includes the UI, data serialization, server communication, etc.

MobX is inspired by reactive programming principles as found in spreadsheets. It is inspired by MVVM frameworks like in MeteorJS tracker, knockout and Vue.js. But MobX brings Transparent Functional Reactive Programming to the next level and provides a stand alone implementation. It implements TFRP in a glitch-free, synchronous, predictable and efficient manner.

No comment yet.
Scoop.it!

Build a Better Angular 2 Application with Redux and ngrx

Build a Better Angular 2 Application with Redux and ngrx | JavaScript for Line of Business Applications | Scoop.it

State management within Angular started out as a single celled organism if you will in the form of a single controller managing all the state for the application. If this is a single page application, one controller makes sense right? We emerged out of the ice age by starting to group our views and controllers into smaller, self-contained units either within a directive or a route. This was a vast improvement, but there was still the problem of managing complex state within our applications. It was not uncommon for us to have bits and pieces of state strewn across our application tucked inside of controllers, services, routes, directives, and occasionally, in our templates. Mutable state in itself is not inherently evil but shared mutable state is a recipe for disaster.

No comment yet.
Scoop.it!

Good bye Flux, welcome Bacon/Rx?

Good bye Flux, welcome Bacon/Rx? | JavaScript for Line of Business Applications | Scoop.it

Facebook introduced Flux about a year ago for client-side web application building and since then it has become one of the hottest tech in the web development scene.

The task of Flux is to isolate business logic from the user interface logic by using dispatcher, stores and actions. The core idea is the unidirectional data flow which means that actions are propagated through the entire system in response to user interactions but they have no binding to the internal data model.

As the name implies, Reactive programming is what React is made for. Actions happen eventually and they propagate through the event streams.Combination of those event streams forms the application’s state. After the event has propagated through the system, the new application state object is consumed by the subscriber and rendered by the root level React component. This makes the data flow dead simple.

No comment yet.
Scoop.it!

rx-flux: The Flux architecture with RxJS

rx-flux: The Flux architecture with RxJS | JavaScript for Line of Business Applications | Scoop.it

The Flux architecture allows you to think your application as an unidirectional flow of data, this module aims to facilitate the use of RxJS Observable as basis for defining the relations between the different entities composing your application.

No comment yet.
Scoop.it!

Reactive MVC and the Virtual DOM

Reactive MVC and the Virtual DOM | JavaScript for Line of Business Applications | Scoop.it

React turned out to disappoint me in multiple ways, mainly through a poorly designed API which induces the programmer to createcomplex state machines and to mix multiple concerns in one component. I decided to replace React with the great virtual-dom library, and to build a Reactive MVC alternative heavily based on RxJS. This pattern turned out to be successful and I applied it to other web apps. One of these is a customer project we are glad to say has worked out very well.

The combo React/Flux is clearly inspired by Reactive Programming principles, but the API and architecture are an unjustified mix of Interactive and Reactive patterns. Keep reading and I'll explain what this means, and how we can do better.

No comment yet.
Scoop.it!

Containers Are Dead. Long Live Observable Combinators

Containers Are Dead. Long Live Observable Combinators | JavaScript for Line of Business Applications | Scoop.it

I really like Cycle.js. It is simple and declarative. But it has two caveats. First it has hard RxJs dependency and that is too much: if I select a rendering library then I don’t want it to constrain my state handling! Second, Cycle’s DOM event subscription system is not practical (regardless how functional and “reactive” it may be): the emitted data must be encoded into DOM (e.g. by using data attributes like data-id=”myId”). Just ugly.

Single source of Truth. And its problems
The state of your whole application is stored in an object tree inside a single store.

That is a direct quote from Redux website. The most of the current Flux libraries use combined reducer and this has locked the developers’ mindsets to the fact that the state should be like a mega sized “blob” which is passed to the “dummy” components via props. And there is always an explicit layer which separates the state handling and the UI: the top level “application container”. Perhaps you’ve seen this kind of lines in Redux apps...

No comment yet.
Scoop.it!

Reactive ReactJS: improving data flow using reactive streams

Reactive ReactJS: improving data flow using reactive streams | JavaScript for Line of Business Applications | Scoop.it
Many people that use ReactJS as their renderer are using some kind of the
Flux architecture to store data, react to actions and notify components
about changes. After a University project involving Scala and RxJava, I wanted
to use these ideas together with ReactJS views. Besides that I found two things
missing in the Flux architecture:

composing different kinds of data easily
interaction with the server

Of course there are ways to solve this, but perhaps reactive streams can help
ease these shortcomings.
No comment yet.
Scoop.it!

Building Apps with PureScript and React

Building Apps with PureScript and React | JavaScript for Line of Business Applications | Scoop.it

Your customer is a company run by crazy squirrels.

Squirrelzon has seen huge success lately because of the adrenaline kicks their customers get during the shopping process. Every second the price for random products change their price. This could mean a raise by a certain amount, a percentual change or even bulk discounts.

All of your JQuery obsessed coworkers deemed the task impossible and you’re the last remaining hope.


To demonstrate the benefits that PureScript and functional reactive programming bring to the browser we’re going to consume the provided WebSocket update stream and build a resilient functional webfrontend for the little rodents.

No comment yet.
Scoop.it!

Functional Reactive React.js

Functional Reactive React.js | JavaScript for Line of Business Applications | Scoop.it
A brief journey into reactive interfaces with FRP and React.js

In this post, I will discuss the way we approach building interfaces with reactive programming and React, and how it’s changed the way we think about writing effective code. The first half will cover how we use reactive programming — RxJS, more specifically — to compose our data sources, and the second will talk about feeding that data into React.

No comment yet.