Docsity
Docsity

Prepara tus exámenes
Prepara tus exámenes

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity


Consigue puntos base para descargar
Consigue puntos base para descargar

Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium


Orientación Universidad
Orientación Universidad


Naive Bayes ejercicios., Ejercicios de Programación C

EjerciciosEjercicios de programacion en el lenguaje c

Tipo: Ejercicios

2019/2020

Subido el 20/01/2020

freison-castro
freison-castro 🇨🇷

5

(1)

1 documento

1 / 85

Toggle sidebar

Esta página no es visible en la vista previa

¡No te pierdas las partes importantes!

bg1
Flux Architecture
with JavaFX
Manuel Mauky
@manuel_mauky
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55

Vista previa parcial del texto

¡Descarga Naive Bayes ejercicios. y más Ejercicios en PDF de Programación C solo en Docsity!

Flux Architecture

with JavaFX

Manuel Mauky

@manuel_mauky

Manuel Mauky

Software Developer at Saxonia Systems AG Living in Görlitz, Germany JUG-Leader of JUG Görlitz

  • Frontend Development (JSF, JavaFX, JavaScript)
  • Functional Programming

What is Flux?

  • Frontend architecture pattern

What is Flux?

  • Frontend architecture pattern
  • Core idea: unidirectional data flow

Store

  • application state
  • logic
  • represents a business unit

Store

View

data flow

  • View visualizes data from the Store
  • When the data in the Store changes the View will update itself accordingly

Store

View

data flow

Action

  • View generates “Actions” based on user interaction
  • Action has a type and (optional) payload data
  • similar to Command Pattern

Example: Actions

type: "CREATE_USER_ACTION", payload: { username: "Luise", email: "[email protected]" } }

Flux Architecture

  • Store: no "setters" - can't be manipulated from the outside
  • explicit modelling of business actions
  • Dispatcher works synchronously: Actions are handled one at a time
  • Optional: dependencies between Stores → order of action handling can be controlled

Store

View

Action

Dispatcher

ActionCreator

  • ActionCreator: reusable function that creates actions
  • used by View

Flux: Details

How to handle async interactions? Like REST requests?

Store

View

Action

Dispatcher

ActionCreator

How to handle async interactions? Like REST requests?

Store

View

Action

Dispatcher

ActionCreator Server

request

response

const fetchUsers = () => { dispatch({type: "FETCH_USERS_STARTED"});

fetch("http://my.api.example.com/users") .then(response => response.json) .then(json => dispatch({ type: "FETCH_USERS_SUCCESSFUL", payload: json }), error => dispatch({ type: "FETCH_USERS_FAILED" }) ); };

Store

View

Actions

Dispatcher

Store Store

View

View View

View

View

View

View