Introduction to Node.js with Ryan Dahl
HTML-код
- Опубликовано: 12 сен 2024
- Node.js is a system for building network services for Google's V8 JavaScript engine. In this presentation Ryan Dahl, the man behind Node.js will introduce you to this event-driven I/O framework with a few examples showing Node.js in action. Ryan will also talk about the recent release of v0.4.0 and how to use some of the new APIs.
** Check out Marakana.com for more free educational resources on open source development.
"Windows is important, just like PHP"
-The guy that "killed" PHP
he did it twice!
Watching this video 12 years ago changed my life as a programmer 👏
I love how much more comfortable he seems in this presentation than in the original talk introducing node.
He improved
Frankly, I really like how he explained NodeJs. It is like learning NodeJs from your friend. I also liked his honesty about what he knows and what he does not.
I watch this video again and again.
In my humble opinion a turning point in history of computer science.
In the middle of my week of JavaScript. Struggling with Angular and Node all day today. Brain gets full, overloads and shuts down. Glad I found this, starting to get Node.
Now, you must be expert in node. 😊
Now, you must be expert in node. 😊
In the end of the video he describes how big applications should be split up in smaller applications. According to wikipedia, the term "Microservice" was kind of tossed the first time in Venice, just 2 months after this session.
Absolutely fantastic explanation. A good mix of examples that explain why one would use node and an appreciation for the depth of node.
I can't believe I watched that whole thing... I mean, it was awesome and all, I just didn't know I was capable of watching a presentation for an hour.
I guess Ryan is just that damn captivating.
39:53 I can't believe Google actually looked like that in 2011.
This talk is great! Javascript's closure support makes all this callback stuff really easy and powerful. I love it.
Love how he brought up 'callback hell' before it had a name. He calls it 'maddness of callbacks' at 51:34
The presentation itself is awesome, but I also love seeing how Chrome and GitHub looked back then.
Great to see Ryan has gotten a lot more confident at public speaking nowadays. One of his first public talks was rather difficult to listen to because it was peppered with uhhs and mmms.
I do find this talk much more pleasant to watch and in fact it was very compelling and interesting.
Still so helpful after nearly 3 years. Thanks Ryan
yes, that's the beauty of Node - it extends JavaScript by offering protocols that you would typically need php or another server side language to do (Python, Ruby on Rails/etc). You only need JavaScript with Node.
In my case I was looking into RESTFul web services (that typically utilize php to do stuff) and will not need to delve deeply into using php to parse XML & JSON (flexible data formats on the web)
It's good to see this talk in 2014 and how much node grow up
xem toan bo
This is a great introduction to node. Thanks, Ryan.
Wow, awesome presentation and with lots of humor. Thanks Ryan Dahl
The example of deeper and deeper anonymous functions starting around minute 48.00 totally reminds me of the movie Inception. A dream within a dream within a dream. And then the callback cb that he added is totally like the totem that you need to carry around as you go deeper into this anonymous world to remind you.
Who can image 5 years before, that node.js would be what it is today..?
me
Same shit in 2k19
yep, too much promise, but a lot disapointing like a lot of things in IT
Attempting to download stuff via WiFi during a presentation -- bold move, Ryan. Bold move.
(I would've said: "Download from here." Then just extract the tarball I had downloaded beforehand.)
Mind = Blown at 21:48
this guy is just creating millions of jobs inventing this
Thanks Ryan, big node fan here.
Thanks Ryan for this contribution to the software development. You are a very clever guy
I've been waiting for this FOREVER!
Love it. This guy for president. He doesn't **** around.
10 years ago. Wow this man is a genius
Actually, python is strongly typed (javascript is weakly typed). Both languages use dynamic typing, as opposed to static typing found in languages such as C and its derivatives.
Ryan - Nice work, were all looking forward to Nodes version 1.0 release.
This guy's programming brilliance: 9, teaching abillity: 3
The way this guy talk is interesting! I don't get bored :D
Didn't quite know what node.js was, so i youtubed it and came across this video (first watched some anti node-js guy rant about how bad it is). I was going to play it in the background as i'm working, but turns out it's really interesting so it's hard to stay focused on actually working rather than watching this.
Agreed. I like PHP, it's not bad and is what I use for most of my Project. I also wouldn't mind to start Nodejs.
@rkulla great to hear it from someone who actually used it. once I was decided to learn php, then I read the first chapter of a book about variables assignment and declaration in php. "oh god, why a thousand rules just for saying a=1??? php musnt be good" It's the first item of my 'never-gonna-learn' list.
LMAO @ rm -rf popping up on the chat screen as he was talking.
"Windows is important, just like PHP"..ahahahhaha :D
Popularity is bad mmkay
1:20
I was planning to search that found it easily 😂😂😂
@nicpro85, PHP is interpreted as is JS, PHP interpreter and libraries are written in C, my guess is V8 the javascript VM used here is also written in C. I don't think PHP is crap is a valid statement, but this should be considered as a viable alternative. Javascript running in V8 in some circumstances can end up executing faster than similar compiled C due to the optimizations built into V8 (that is pretty amazing). This is just another example of pick the right tool for the job (and skills).
Wow the guy is fun! I really enjoyed the show!
Work's perfect, recheck your program.
Note: The telnet terminal is a bit cluttered after you connect to localhost.
Fantastically refined presentation.
great talk :)
oh and actually Ryan confused himself around 32:00 when he was testing 'delete a[n]'. he was right upfront, delete in JS does not remove the element from array, it changes it to undefined instead. if he'd check array's length he'd see that it's not touched. it seems that for some reason node repl is not showing such elements (that was the confusing part).
brillant, and you look a bit like the nerd in James Bond Goldeneye XD Thanks a lot for your amazing presentation :p very nerdy, but very cool :p
Nice workshop. I learned so much doing these!
Someone told me to go learn node, cause it would be easier than PhP and far more suited for my project... Well, I'm glad I understood about half of what this guy told... Time to practice JavaScript some more and rewatch to see if I can get that up to 75%.
I understand your frustration and get your point, I don't think it is ever going to happen. I love Javascript, I use it a lot. But some stuff I prefer how it is done in PHP, just like I prefer how stuff is done in SQL vs Mongo. Someone else will completely agree, and another person will have a different view, and so on.
So unfortunately it is not very likely we will singularise coding and I don't think we should, because I like the way different languages handle operations.
Great job! Awesome introduction to note
The intro music is great... just like Node.js.
.splice() is better than delete, delete don't reduce the length of sockets array, then array will be exceed limit, program will throw a error and breakdown.
Ryan dahl, your original way is the better way.
Genius Ryan Dahl 🔥
this is how it all started
you can use the console/command prompt to run node.js, I don't know what editor was used for the examples in the video.
Awesome presentation, thanks for sharing.
Good talk, I can finally get some time to play with NodeJS :)
@mwalsher Fair enough! But I mean more of the outcome of the project-- what it's done for open-source development, and how it's reduced the barrier to entry for front-end developers to get a foothold on the server. It's made a tremendous outcome on my business and our customers.
i love this speech, making me want to give up play and come to node !
Couldn't agree more! Just started incorporating node in to my works and I'm an idiot for waiting this long.
very clear
More than ever before.
The future of web applications is more easily editable content that can be viewed across a variety of devices. I'd like to see some of these barriers being broken through in terms of the way data is formatted and sent from a client program to the server, stored in the database, and then easily reversed when it needs to be retrieved. In the future I should need to encode and decode HTML, JSON, and server script ever step of the way,
Wow, I'm actually excited about this language!
Awesome, and without slides!
@JasonBunting: Swearing is a tool that can be used to intimidate or demean people, or it can be used to relieve tension and create a sociable atmosphere. I don't think the second type is lame.
You may be thinking about Ruby, which was the subject of a major hack a couple of months ago
Great talk! Node.js is probably going to be THE web2.0 back-end language. Bye bye PHP.
I think that there's an error @33.48. Calling "delete" on an array's element should turn that element to undefined, but in the video it behaves as the slice method. Actually repeating the same example in the current version of Node works as expected returning [,2,3,4].
So when would it be a good time to use another thread instead of taking advantage of the Node.js nonblocking ability he describes? Is there a limit or a point when that becomes the better option?
"delete a[0]" won't work in javascript correctly like you suppose, it just overwrites a[0] with null, so the element isn't completly removed from the array and the array still has got the same length. So "a.slice(0,1)" would be the correct way like ryan showed them.
This video made me give node.js a try.
@onurbabadeluxe Node.js allows to run javascript server-side so now it can "compete" with PHP and other server-side languages.
Said that, every language has advantages over others, and some people find themself more comfortable with one or another. Evidently many users here prefer scripting in JS instead of PHP, that's it.
This is GOLD
nice video love the "BIll Gates hand dance"
38:03 "Everybody loves gdb. If you don't love it you are wrong."
huehuehueuhe
Actually, delete does not delete slice in an array properly. It changes a value at position given by index to undefined. Time 33:49
Cool!
BTW. What the name of colorscheme you used for the Vim or iTerm?
From creator of Node.js, recorded in the earlier days (2011) of its lifespan. Live codes some basic Hello World apps showcasing the fundamentals, worth watching the full hour.
gets hilarious at 34:15 when the socket chat server comes into scene lol
@boltar2003 yes. it's faster and different. it's also good for programmer experience. It's not like any other famous framework out there, be it rails or django.
@mtgred AFAIK you need to edit your /usr/share/vim/vimrc (if you are using Mac) and Ryan, he use iTerm.
i have a doubt... node is : a language ? , is a server aplication ?, is a framework? , which would it be more acurate ???
Thanks, man. I been wanting to expand my knowledge in other technologies moving into server side programming. Learning Java and diving into Java Server Pages was something I was thinking about getting into. But I'm so comfortable with JavaScript. It would be like a double edge sword for me moving onto another language.
I've studied JS for 2 years.
About Node.js I've been hearing some negative things about it. I hear people mentioning you can hack into Node.js or things like that. Is this true?
An array is the same no matter what language you use. It’s just a structure in memory.
Think of it this way. If everyone in the world spoke the same language, think how far we would be as a society. Think of all that miscommunication that’s caused so many problems. This is why the world uses the metric system so that everyone can be on the same page. Err. except us of course.
Hopefully JavaScript will unite us. I’ve got my fingers crossed on that one.
around 33:50 why delete a[1] leave the a with [ 4 ] ? Shouldn't it be [ 3 ] instead?
I thought the same thing. He changed the screens quickly so it seems no one else noticed it.
kagi95 stackoverflow.com/questions/10325026/javascript-array-slice-versus-delete
delete only makes that certain location of the array undefined but the array still contains item. Whereas splice completely remove the item and it's location --- So we better use splice
Pongsakorn Semsuwan Gotcha! Appreciate the link, so there were two undefined and hidden points in the array at the end.
Thanks Ryan, you are genius.
oh ok. It probably was Ruby. I heard it from somewhere, but I lost memory. I'll try out Node.js and see how it goes.
great presentation
45:43 "What do you think about that? Do you think, 'This is so boring. I cannot wait to go home and have a beer. Why do they not serve beers at these things?' Because that’s what I am thinking."
LMAO
02:55 node is a bunch of sugar on top of a very complex virtual machine written by Google called v8
03:22 node is a set of librairies on top of v8 ...uses that greatness to do networking things...the focus is on doing networking correctly
Cool. I will study it.
Thanks.
Did you open two telnet connections? That line is to stop your own text being echoed back to you so you shouldn't see it. Have two windows open, type on one, see on the other.
Oh I see. Thank you for the explanation ^^
Proud to say that I'm a Ubuntu user myself, thought only a novice one
@onurbabadeluxe node.js is asynchronous and php is not. So when you need to read a file from the disk php waits for the disk to spin and read it and then php goes further with the script. Node.js creates a callback that executes when the file has been reads so it doesn't wait until the file is read but goes further with the script immediately.
Is node actually capable of replacing PHP? Shit, I just learned the language, and Zend Framework ... Well it looks hust great. JS is awesome. Now Ryan, can you tell us please which is the most suitable framework for node? Is it Spine or something else?
I know very very little about Node.js. Can you Node.js for server side JavaScript instead of other server side programming such as JSP, ASP, PHP etc.?
Is there any particular advantage to using this over python other than language preference?
At :44 'no semi colons are optional' I cant believe this guy uttered those words after Douglas Crockford a leading authority on javascript says that while semi-colons may be syntactically optional you should still require them when you program.
where's the site? Can't find much on google, thanks alot by the way, didn't think I'd find an answer
Awkward social interactions, check. Lots of random typing/spelling problems, check. Apparent adult ADD, check. True programmer right there.
28:50 What are the holes you would need to plug?