Let's see how to create a JavaScript app AND make it extendable with plugins! Yes, you'll learn how to create your own system that accepts plugins and learn how to create and inject these plugins inside your app.
This is intermediate/advanced JavaScript. So it's more difficult than usual but totally worth watching and trying to fully get the concepts presented here.
0:00 Generating an app using Vite.js
2:58 Creating a Logger app
3:56 Creating a Middleware Manager that will accept custom plugins
8:45 Creating our first custom plugin / middleware
10:34 Adding the middleware to the middleware manager
12:21 Creating a function that can execute several function sequentially
18:17 Let's create a second middlware that flags messages by their importance
21:35 Let's register the second middleware into the middleware manager
23:33 Let's create a thrid middleware
24:25 Reversing a string
26:00 Registering the third middleware
26:56 Making your middlewares easily identifiable
30:27 Adding a showMessage() function to the logger
Improve in HTML, CSS and JavaScript by subscribing to our newsletter:
https://codeconcept.ck.page/28d6110032
Nesta página do site você pode assistir ao vídeo on-line Javascript Design Pattern 2023 : Middleware Pattern duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário JavaScript Ricochet 06 Fevereiro 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 481 vezes e gostou 13 espectadores. Boa visualização!