Node Events Tutorial | Node.js Tutorials for Beginners

preview_player
Показать описание


(00:00) Intro
(00:05) Welcome
(00:14) Overview
(00:25) Setup
(01:21) Building a custom log module
(06:33) Events module and EventEmitter
(09:40) Finishing the logEvents module
(14:25) Wrap up

📚 References:

✅ Follow Me:

#node #nodejs #events
Рекомендации по теме
Комментарии
Автор

This Goat will unquestionably make me as a full stack development. Concise video packed with abundance of information. Thanks alot Dave

skillkrio
Автор

I know that you posted this video a while back but I am trying to lean more about node and web servers etc. and I will say this has been a pleasure to watch and try. I am 70 but I just enjoy dabbling in code. Your video is easy to follow and easy to understand. Thank you for taking the time to show us how to do things and make them work. Your folder missing is a perfect way to trap errors. Cheers

erichgq
Автор

One cool feature about events is that you emit an event once but you can have multiple listeners on it,
for example we can have two listeners listening on the "log" event, one of which is responsible for writing the data on the disk and the other is responsible for displaying it in the console,
maybe later on we need a third one for sending emails (ex: to developer) when a specific data is logged (ex: uncaught errors/exceptions),
the good part here is all of these logging implementations are independent of each others, so we can drop or modify any of them as needed without having to touch the code where the event is emitted.

Thanks Dave,

ahmad-murery
Автор

Very good video. Also, we can use the eventEmitter without a class, just initialize the ee
const {EventEmiter} = require('events')

const myEvent = new EventEmitter();

misterl
Автор

I was on vacation and had to remember some stuff on node, thank God I found you

caaltz
Автор

Thanks a lot for this Dave! Your courses are amazing, you are so underrated. I will share with everyone I know, and congratulations!

codewithkin
Автор

Brilliant and simple as always. For people to take a first impression about subjects to involve. So we should be a good students. 😊

tat-lyubch
Автор

Thank you so much! Very well explained! 💛

kostiantynkarzhanov
Автор

Thank you so much for this series. It really helped me a lot.

danidan
Автор

Thanks a lot for this Dave! for sharing such an amazing content!

imakshith
Автор

Excellent didactic. Clarity and objectivity. Thank you one more time. It has helped me in my work.

edwilsondasilva
Автор

Awesome tutorial for an absolute beginner to nodejs like me. Thx a

codie
Автор

Love node, Awesome. also expecting for express tutorials

computerscience
Автор

watching you tutorial video pretty cool. On the other hand, wish to learn how to developing a payment gateway on the E-Commerce when I getting an online order to forward UPS and Federal Express

leechiwaimichael
Автор

Thank you, this is really good tutorial.

MrSalFav
Автор

Hi Dave, Whats the purpose of UUID in the error log? Isn't the datetime unique enough to serve as an identifier?. I am almost finishing this series and have learned so much from your tutorials. Thanks you so much!

BennyThadikaran
Автор

Sir best resource to learn nodejs and mongodb

Web-Himansu
Автор

hi dave are you mean common core modules is existed or embbeded in node js previousely

haiderjaafer
Автор

it's actually console.error(), I tried console.err() in the past too lol.

soniablanche
Автор

the ocnstant variable `EventEmitter` why is this not camel cased???

keithbacalso