From 74417c272335e262c0bbab6d97c246c98e345e65 Mon Sep 17 00:00:00 2001 From: Alexander Dorn Date: Fri, 31 Jan 2025 13:57:39 +0100 Subject: [PATCH] start introducing new lecture approach --- common/css/common.css | 4 + ngrx/intro.html | 159 +++++++++++++++++++------------- web-app-architecture/index.html | 2 +- 3 files changed, 100 insertions(+), 65 deletions(-) diff --git a/common/css/common.css b/common/css/common.css index 00221e5e..d72b8efa 100644 --- a/common/css/common.css +++ b/common/css/common.css @@ -32,6 +32,10 @@ border: 0; } +.reveal .progress { + height: 10px; +} + .devon.reveal section img.reset { background: none; border: 0; diff --git a/ngrx/intro.html b/ngrx/intro.html index 68b49cdc..1257cd66 100644 --- a/ngrx/intro.html +++ b/ngrx/intro.html @@ -45,19 +45,6 @@

Introduction to

Reactive Architecture

-
-

Scaling MVC Applications

-
- -
    -
  • Debugging?
  • -
  • Testing?
  • -
  • Understanding?
  • -
  • Server Side Rendering?
  • -
-
-

http://onehungrymind.com/build-better-angular-2-application-redux-ngrx/

-

UI = f ( State )

@@ -77,29 +64,6 @@

Scaling MVC Applications

data-background-image="img/state-example-3.png" data-background-size="40%"> -
-

Which Libraries To Know?

-
-
- -

React

-
-
- -

Flux

-
-
-
-
- -

Redux

-
-
- -

ngrx

-
-
-
@@ -128,37 +92,10 @@

Reducer Function

Store - Tree Of Reducers

-
-

State goes down

-

... using Angular @Input syntax.

- -
-
-

Events go up

-

... using Angular @Output syntax.

- -

HTTP Request (XHR)

-
-

Websockets Push

- -
-
-

Websockets Pull

- -
-
-

Forget Everything And Go Reactive?

-

Abstraction is the tradeoff which is not always worth it.

- -
ngrx in Angular
@@ -229,7 +166,101 @@

Forget Everything And Go Reactive?

Let's try this out and feel the power of reactive architecture!

- +
+
+

Best practice

+

Checkout dumb vs smart components

+
+
+

State goes down

+

... using Angular @Input syntax.

+ +
+
+

Events go up

+

... using Angular @Output syntax.

+ +
+
+
+
+

Summary

+
    +
  • First ...
    +
      +
    • First detail...
    • +
    • Another detail ...
    • +
    +
  • +
  • Second ..
  • +
+

Live Code Examples & Backup slides below

+
+
+

Live Code Examples

+ +
+
+

Backup slides

+

Following slides are not subject of the lecture.
Ask trainers in case of questions.

+
+
+

Scaling MVC Applications

+
+ +
    +
  • Debugging?
  • +
  • Testing?
  • +
  • Understanding?
  • +
  • Server Side Rendering?
  • +
+
+

http://onehungrymind.com/build-better-angular-2-application-redux-ngrx/

+
+
+

Which Libraries To Know?

+
+
+ +

React

+
+
+ +

Flux

+
+
+
+
+ +

Redux

+
+
+ +

ngrx

+
+
+
+
+

Websockets Push

+ +
+
+

Websockets Pull

+ +
+
+

Forget Everything And Go Reactive?

+

Abstraction is the tradeoff which is not always worth it.

+
    +
  • For small applications it's simply overkill.
  • +
  • Lack of know how.
  • +
  • Use it when you need it.
  • +
+
+
diff --git a/web-app-architecture/index.html b/web-app-architecture/index.html index 423b20de..18fc8bf8 100644 --- a/web-app-architecture/index.html +++ b/web-app-architecture/index.html @@ -383,7 +383,7 @@

The Angular Component Tree

Dialog Components

-
+

A must-know pattern: Smart vs Dumb Components