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?
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.
I have no doubt you are a very smart guy. However, your presentation is very confusing and it seems your were unprepared. If you want to makert this stuff, you need to deliver clearly on your presentations. Just a suggestion.
@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).
59:00 tracing data flows instead of tracing control flows is a bitch. it's an anti-pattern sort of thing that you really want to avoid for most of your code. speaking from experience in developing multi-threaded client software (with event loops and tons of callbacks, of course). the async continuation style of programming might look like a new cool invention to boys, but in terms of ease of comprehension and debugging it's vastly inferior to the traditional blocking procedural approach.
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.
Node looks amazing and quite useful and even something fun and interesting to explore.
But as to this presentation itself , I couldn't get past the repetitious usage of "ok so" "ok so" "ok so" "ok so" to fill the gaps of silence while the presenter mentally prepared his next train of thought!
How about a cliffs notes version of the presentation that chops out all the OK So's? LOL
Event-based engine is a cool idea for developers, the trouble is it won't double up the hardware. Once you need not make a thread (or care about everithing else) the engine is making it for you.
Meaning? This approach is nice if project load is not huge - on the huge load you will be bottlenekked faster.
@OopsAiee Look up the C10K problem. The best way to write a server that can handle lots of connections (thousands) is not with threads. The idea with node.js and other asynchronous non-blocking libraries is that you don't need a thread per connection. A thread is a terrible thing to waste on a single blocking connection. Put your non-blocking connection file descriptors in epoll, kqueue or what have you and let the OS notify you when data is available. This eliminates context switching.
@bainsbeant One may write a pool with async sockets with a main loop and this will work in any existing languages. In other words write yourown event handler - thats all. I don't say this technology is bad I say it's just the same thing but from other point of view. It's uniq so far and interesting but I would not switch blinded to node just because it's new and been good advertised. The cons against using it is a different development paradigm. Once must code with async handling in mind.
I have no understanding of what he's explaining but I want to. Why aren't schools teaching the young creative knowledge that allows life to be simplified, such as this? I feel more inquisitive & less educated. The only thing I know how to do with a computer is turn it on & use the Internet. Being this ignorant to a highly rapid world is terrible. Maybe I was just born during the wrong era?
Sry if a ask.... but i mean php is a serverside scripting language and js a clientside scripting language... why is js better than php? they're Two Different Animals?
@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.
@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.
@MrBTie PHP developers have to laugh at themselves. It really is the Windows of the programming world. I should know, I've done it for a living for years. Just like Windows, it technically "works" in a sloppy, unsafe--yet easy, way; but really can't beat the well designed opponents.
@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.
@digerpaji Can you spell properly? Yes, the creator of node.js is a fucking retard and PHP, a language that is 17 years old is not out of date. You are right about everything how does it feel to go through life being so right all the time?
@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.
It's great that Ryan Dahl created Node.js, and this was a decent enough intro, but it would have been nice if he were a bit more professional in this demo, he's not very polished... And the swearing was pretty lame. How old is this guy?
@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.
@cccallum1 Amazingly, one can "relieve tension and create a sociable atmosphere" without swearing, too. And depending on the audience, swearing, even for this purpose, can make some people feel the opposite. I work with a lot of very professional people, some of which are a bit more conservative about that kind of thing, and it would cause problems - i.e. I can't show this video to such people, unfortunately.
@JasonBunting It's a shame about some people being so conservative, but it's their loss. And most professional people I know enjoy swearing. I know it's possible to be casual without swearing, but that doesn't mean everyone always should.
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.
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).
>indention
mandokir 23 hours ago
Take off your coat NERD!
RapaFan 3 days ago 3
ctrl+opt+cmd+8 !
perkelation 2 weeks ago
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?
gmdtvh 2 weeks ago
An off-topic question.. what is the music track at the beginning of the presentation?
karankent 3 weeks ago
Great talk! Node.js is probably going to be THE web2.0 back-end language. Bye bye PHP.
tobiasartz 3 weeks ago
Try holy buddha instead of Jesus
joeydanielallen13 3 weeks ago
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.
jbperez808 3 weeks ago
Ryan,
I have no doubt you are a very smart guy. However, your presentation is very confusing and it seems your were unprepared. If you want to makert this stuff, you need to deliver clearly on your presentations. Just a suggestion.
csmath30 4 weeks ago
@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).
wafflejock 1 month ago
I wish the camera would have shown the nerd who made the Windows comment....some basement dwelling virgin
gshauger 1 month ago
is PHP crap? i dont understand
nicpro85 1 month ago
ok sooo....is it really cold in there?
NewYork81983 1 month ago 3
@NewYork81983 Made my day.
miXn 1 month ago
I tried to interrupt, but he didn't respond to my question :(
Centersphere 1 month ago
Estou espantado com esta tecnologia
webinfornet 1 month ago
The guy dosn't know shit about PHP and yet he talks like he's got it figured out... His statement was maybe true like 6 years ago... ignorance...
gamersma 1 month ago
thanks for that
MoritzMyer 1 month ago
59:00 tracing data flows instead of tracing control flows is a bitch. it's an anti-pattern sort of thing that you really want to avoid for most of your code. speaking from experience in developing multi-threaded client software (with event loops and tons of callbacks, of course). the async continuation style of programming might look like a new cool invention to boys, but in terms of ease of comprehension and debugging it's vastly inferior to the traditional blocking procedural approach.
clray123 1 month ago
Whats the music at the beginning?
IAmRyanCoke 2 months ago
Wow the guy is fun! I really enjoyed the show!
yopizza 2 months ago
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.
tennistechie 2 months ago 5
Love it. This guy for president. He doesn't **** around.
kszpirak 2 months ago 3
Like someone says down there, great talk wrong audience. Its a cool technology! Im going to play with it now to see what i get.
Snyflex 2 months ago
i'm in luv
Zoasterboy 3 months ago
great talk, wrong audience..
they don't get how awesome that is. :(
DaSheep 3 months ago 3
@DaSheep Hindsight is 20/20
strictlykev2008 2 months ago
Node looks amazing and quite useful and even something fun and interesting to explore.
But as to this presentation itself , I couldn't get past the repetitious usage of "ok so" "ok so" "ok so" "ok so" to fill the gaps of silence while the presenter mentally prepared his next train of thought!
How about a cliffs notes version of the presentation that chops out all the OK So's? LOL
DaBigNob 3 months ago
6 persons are not programmers
makrusak 3 months ago
"cat /etc/passwd"
"rm -rf"
I LOLed.
moveaxebx 3 months ago 9
Cool!
BTW. What the name of colorscheme you used for the Vim or iTerm?
cantoraz 4 months ago
Event-based engine is a cool idea for developers, the trouble is it won't double up the hardware. Once you need not make a thread (or care about everithing else) the engine is making it for you.
Meaning? This approach is nice if project load is not huge - on the huge load you will be bottlenekked faster.
OopsAiee 4 months ago
@OopsAiee Look up the C10K problem. The best way to write a server that can handle lots of connections (thousands) is not with threads. The idea with node.js and other asynchronous non-blocking libraries is that you don't need a thread per connection. A thread is a terrible thing to waste on a single blocking connection. Put your non-blocking connection file descriptors in epoll, kqueue or what have you and let the OS notify you when data is available. This eliminates context switching.
bainsbeant 4 months ago 2
@bainsbeant One may write a pool with async sockets with a main loop and this will work in any existing languages. In other words write yourown event handler - thats all. I don't say this technology is bad I say it's just the same thing but from other point of view. It's uniq so far and interesting but I would not switch blinded to node just because it's new and been good advertised. The cons against using it is a different development paradigm. Once must code with async handling in mind.
OopsAiee 4 months ago
I have no understanding of what he's explaining but I want to. Why aren't schools teaching the young creative knowledge that allows life to be simplified, such as this? I feel more inquisitive & less educated. The only thing I know how to do with a computer is turn it on & use the Internet. Being this ignorant to a highly rapid world is terrible. Maybe I was just born during the wrong era?
Ediblelies 4 months ago 4
whats wrong with php? :/
KeepItFresh02 4 months ago 3
The intro music is great... just like Node.js.
dzagent 5 months ago 4
The red part on his shirt looks like a gun laser scope, lol.
Fiotee 5 months ago
Sry if a ask.... but i mean php is a serverside scripting language and js a clientside scripting language... why is js better than php? they're Two Different Animals?
onurbabadeluxe 5 months ago
@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.
dubrox 5 months ago
@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.
MrSandervanDoesburg 5 months ago
4 php developers dislike this video
andrija11 5 months ago 3
someone has this video? because this is offline at least now 08/26/2011 16:52 GM-3
dreampeppers99 6 months ago
Control-Command-Option-8 to invert colors =P
CodeRarity 6 months ago
Great talk, I thought Ryan was an interesting presenter, his enthusiasm really comes across.
shalpin 7 months ago
I don't get it. The php people are laughing of their own disgraceful situation?
MrBTie 7 months ago 13
@MrBTie PHP developers have to laugh at themselves. It really is the Windows of the programming world. I should know, I've done it for a living for years. Just like Windows, it technically "works" in a sloppy, unsafe--yet easy, way; but really can't beat the well designed opponents.
rkulla 7 months ago 2
@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.
MrBTie 7 months ago
@MrBTie what disgrceful sitution i dun get. If he is dissing PHP then he is a fucking retard
digerpaji 1 week ago
@digerpaji then search about it on the internet. php good ol'days are behind.
MrBTie 5 days ago
@digerpaji Can you spell properly? Yes, the creator of node.js is a fucking retard and PHP, a language that is 17 years old is not out of date. You are right about everything how does it feel to go through life being so right all the time?
Nolgthorn 1 day ago
Is there any particular advantage to using this over python other than language preference?
boltar2003 7 months ago
@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.
MrBTie 7 months ago
After fuck the GFW, I saw this video finally.
fengmk2 7 months ago
It's great that Ryan Dahl created Node.js, and this was a decent enough intro, but it would have been nice if he were a bit more professional in this demo, he's not very polished... And the swearing was pretty lame. How old is this guy?
JasonBunting 7 months ago
@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.
cccallum1 7 months ago
@cccallum1 Amazingly, one can "relieve tension and create a sociable atmosphere" without swearing, too. And depending on the audience, swearing, even for this purpose, can make some people feel the opposite. I work with a lot of very professional people, some of which are a bit more conservative about that kind of thing, and it would cause problems - i.e. I can't show this video to such people, unfortunately.
JasonBunting 7 months ago
@JasonBunting It's a shame about some people being so conservative, but it's their loss. And most professional people I know enjoy swearing. I know it's possible to be casual without swearing, but that doesn't mean everyone always should.
cccallum1 7 months ago
Great job! Awesome introduction to note
glabega 7 months ago
34:15 lolol very mature.
xXxEmogal999xXx 8 months ago
Awesome!
Crisboot 8 months ago
his moving so much from left to write sorta irritating...
SeventhFlow 8 months ago
What's the intro music?
fiffirt 10 months ago
cat /etc/passwd
zigomir 10 months ago
Very informative demo. Love it.
joeyco67 10 months ago 2
Comment removed
IDIEININIIS 10 months ago
Comment removed
IDIEININIIS 10 months ago
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.
someonerules 10 months ago 24
@someonerules Shucks!! It was for an hour. i dint even notice..wow
bezudar 9 months ago
Why should I love gdb? It's buggy and absolute horror to debug C++ with stl!
MrNightLifeLover 10 months ago
Very interesting stuff, I''ve been following this project for some time.
There's an "automated" way to compile nodejs on Archlinux, just use yaourt on the aur repository. Just type: yaourt -S nodejs and you are ready to go.
Ryan is a funny guy.
emarcs81 10 months ago
This is a great introduction to node. Thanks, Ryan.
bricestacey 10 months ago 3
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).
ardc0rre 10 months ago 64
I <3 his terminal style...
d0m0x 10 months ago
Invaluable
DrewLeSueur2 11 months ago 4
I think it is vividchalk by tpope.
minhajuddinkhaja 11 months ago
What is the Vim colorscheme Ryan uses ?
mtgred 11 months ago
@mtgred AFAIK you need to edit your /usr/share/vim/vimrc (if you are using Mac) and Ryan, he use iTerm.
attomostube 10 months ago
“Windows is very important. Just like php.” 1:18
DmitrijSohin 11 months ago 266
@DmitrijSohin I understand Windows is love/hate, but what's wrong with PHP?
frosty1433 9 months ago
@frosty1433 Nothing. Just because someone expressed a personal feeling it doesn't mean it's wrong.
petsoukos 8 months ago
@frosty1433 What's wrong with PHP?! Hmm, where do we start? You could start here, and keep going:
bit.ly / php-sucks-but-it-doesnt-matter (sorry, I had to obfuscate the link, *&@#^$!! YouTube doesn't let you link to outside resources, apparently.
JasonBunting 7 months ago
@DmitrijSohin oooh I get it. this replaces php. lol
frosty1433 9 months ago
@DmitrijSohin I also like "cuz Macintosh is shit."
katalysis 3 months ago
@DmitrijSohin That's mean, but I like it
wangchao19890207 3 months ago
@DmitrijSohin Apparently, that was a PHP meeting. Cheeky!
yopizza 2 months ago
@DmitrijSohin Oh f***
RecycleEmotions 1 month ago
@DmitrijSohin i dont understand is PHP crap ?
nicpro85 1 month ago
Thanks Ryan, big node fan here.
tonyparisi1 11 months ago
Thank you..
dannycastonguay 11 months ago
Awesome, and without slides!
beardymonger 11 months ago 2
Very interesting.
zyrgzyrg 11 months ago
Cool.
AlicanC 11 months ago