RxJS: destroy the state machine! - Stenver Jerkku / Front-Trends 2016

  Рет қаралды 15,183

Front-Trends

Front-Trends

Күн бұрын

Learn our story how we discovered RxJS, how it helped to bring SaleMove from a massive state machine into an elegant event-based reactive platform. We started out with a big state machine that was difficult to maintain, test and develop. As the application grew we quickly saw that another approach was needed. After discovering RxJS, we quickly adopted the event-based reactive approach.
In this talk I am going to give you an overview of RxJS and why should you use it. I am going to talk about how once we adopted the event-based approach, it completely changed the way we think about state and state programming. All this with code examples.

Пікірлер: 19
@wadenweh
@wadenweh 7 жыл бұрын
Where is the point about "destroy the statemachine"?
@back2bikes336
@back2bikes336 6 жыл бұрын
If you understand the implications of what Rx can do, then a finite state machine is to a large extent unnecesary. The last example where he is filtering clicks is basically a state machine in 3 lines of code
@ikebipe
@ikebipe 5 жыл бұрын
@@back2bikes336 So it is a statemachine
@deepfakescoverychannel6710
@deepfakescoverychannel6710 Жыл бұрын
@@back2bikes336 no. State machine func should receive new state and handle old state, for example finalize some resources for old state, and initialize for new state. It is impossible to do with RxCrutch
@orlyffob8638
@orlyffob8638 8 жыл бұрын
A fantastic introduction to RxJS. Everything is a stream!
@chriszhang3629
@chriszhang3629 7 жыл бұрын
Love this talk! I am just starting to learn RxJS and this talk helps me a lot!
@VladyVeselinov
@VladyVeselinov 8 жыл бұрын
5:00 "Your project manager is probably gonna get hyped when he sees this" hahaha :D
@Icr125riderI
@Icr125riderI 8 жыл бұрын
Stenver that was great. Thanks!
@pawel.badenski
@pawel.badenski 7 жыл бұрын
it sounds like he's saying "reactive brogramming" :)
@KarjamP
@KarjamP 7 жыл бұрын
If his state machines really were difficult to maintain, test and develop, he wasn't practicing good development, to begin with. State machines are supposed to help with the control flaw, not destroy it! Sate machines are used whenever the need to keep track the change in input is needed within a system, or when a need to keep track of what it's doing becomes apparent. State machines co e in all sorts of sizes, from the AI within video games to even parsers of a programming language. Even the operating system of the computer itself happens to be one bug state mechine. If people were to find problems with using state machines, it's often because they were using state machines in inappopriate ways. These people are not entirely aware of what they're doing. For the record, RxJS is, itself, a variant on the state machine idea. Inputs are given to the system in the form of "events", with which the system may respond by putting itself into an altered state.
@DanielNgo2014
@DanielNgo2014 4 жыл бұрын
He didn't know what is a fsm.
@dayvie9517
@dayvie9517 6 жыл бұрын
RxJS subjects are stateful, you will never support states because that would mean working without data.
@shirshzibbu330
@shirshzibbu330 4 жыл бұрын
downvote. no mention of state machine or its destruction
@ABDULSALAMAYINLA
@ABDULSALAMAYINLA 7 жыл бұрын
Scott please I'm tired !!! do you live in tree house now ?
@behnamrasooli8801
@behnamrasooli8801 5 жыл бұрын
Did someone actually check the correctness of his talk before letting him go up the stage and mislead other developers? @7:37 "Event is fundamentally a collection?" What the F? You mean a stream of events is a collection, right?
@frutiboy1
@frutiboy1 8 жыл бұрын
this dude does not know what he speaks about
@Hammerzeiterrrr
@Hammerzeiterrrr 8 жыл бұрын
why
@thatoneuser8600
@thatoneuser8600 2 жыл бұрын
@@Hammerzeiterrrr honzajde does not know what he speaks about
RxJS In-Depth - Ben Lesh
30:44
AngularConnect
Рет қаралды 64 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 156 М.
Dad gives best memory keeper
01:00
Justin Flom
Рет қаралды 20 МЛН
When you discover a family secret
00:59
im_siowei
Рет қаралды 34 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 34 МЛН
David Khourshid - Infinitely Better UIs with Finite Automata
25:33
Ben Lesh - Advanced RxJS: State Management and Animations
41:53
Jazoon TechDays
Рет қаралды 18 М.
Ng-Cruise - RxJS By Example with Ben Lesh
31:55
This Dot Media
Рет қаралды 11 М.
Netflix JavaScript Talks - RxJS + Redux + React = Amazing!
37:14
Netflix Engineering
Рет қаралды 394 М.
RxJS 5   Thinking Reactively | Ben Lesh
39:04
AngularConnect
Рет қаралды 80 М.
Complex features made easy with RxJS
36:13
Hasgeek TV
Рет қаралды 59 М.