No video

What is Node.js? What is a runtime environment and what is a virtual machine?

  Рет қаралды 15,697

H William Polenz

H William Polenz

4 жыл бұрын

I've programmed at least 3 different applications in Node.js and I hadn't understood until now (4 years later) that Node.js is a runtime environment! Hopefully you have realized this as well.....

Пікірлер: 83
@henoksamuel1106
@henoksamuel1106 3 жыл бұрын
I actually laughed when you said "Everyone assumes you know what a runtime environment". That is facts
@Sailendranath_Thakur
@Sailendranath_Thakur 2 жыл бұрын
Exactly
@teresapelinski6186
@teresapelinski6186 2 жыл бұрын
lol
@artemy3718
@artemy3718 2 жыл бұрын
+1 lol
@exe.m1dn1ght
@exe.m1dn1ght Жыл бұрын
that is annoying asf
@AG45.
@AG45. Ай бұрын
its not really funny because theres 500 other things about programming everyone assumes you know
@gerooq
@gerooq 4 жыл бұрын
this was EXACTLY what i needed. Thankyou so much. Literally I was going through the same question in my head: "What the hell is a runtime environment?"
@hwilliampolenz6713
@hwilliampolenz6713 4 жыл бұрын
Oh! Cool! I'm glad to be of help :)
@elultimopujilense
@elultimopujilense 4 жыл бұрын
You just read my mind! I have been programming for over a decade now, and I didnt knew what a runtime was. Thank you for this video!!!
@Limpuls
@Limpuls 4 жыл бұрын
Very well explained. I guess we can say that nodejs runtime environment is another abstraction layer over a host operating system, which is also a runtime environment which sits on another runtime environment called hardware (or maybe BIOS before hardware). Just a bunch of abstractions, which means that your nodejs code will not be compiled directly to machine code and ran by OS/CPU, but by nodejs virtual machine/runtime first.
@hwilliampolenz6713
@hwilliampolenz6713 4 жыл бұрын
Wow! Thanks, and yeah, I suppose so.
@ohmyumbrella
@ohmyumbrella 4 жыл бұрын
"it went over my head and it never came back" is how most stuff goes for me
@limitless9483
@limitless9483 2 жыл бұрын
Why the dislikes yall haters this was very clear and concise thanks.
@hwilliampolenz6713
@hwilliampolenz6713 2 жыл бұрын
I appreciate the compliment, that is encouraging!
@sommmtoooo
@sommmtoooo 8 ай бұрын
Your channel has quality content. Wish the algo would suggest this 70% of the time.
@sivakumaran9426
@sivakumaran9426 4 жыл бұрын
Thank goodness, I felt like I was the only guy who codes node without having a deep knowledge in basics, then I found you
@hwilliampolenz6713
@hwilliampolenz6713 4 жыл бұрын
Haha, you're welcome.
@57southbury
@57southbury Жыл бұрын
Thank you very much for an excellent explanation and for the reference to Patel's post on "What exactly is Node.js?" Not everyone has the courage to say they don't really understand something. My hat is off to you sir. This video really helped my understanding!
@jamesrohner5061
@jamesrohner5061 Жыл бұрын
Wow, this video is exactly what I was looking for. Your way of going about explaining this really helped me.
@Amzodt
@Amzodt 2 жыл бұрын
You saved my life today on September 11th 2021. I finally get it!
@hwilliampolenz6713
@hwilliampolenz6713 2 жыл бұрын
Haha, thanks! I can't save your life, though, only Jesus Christ can do that.
@ramoun16
@ramoun16 3 ай бұрын
finally someone talking about this
@andyliu4890
@andyliu4890 Жыл бұрын
This video answered all my questions :D I really should pay more attention in classes
@Gazelle871
@Gazelle871 Жыл бұрын
This was fun to watch.
@SZ-jw9my
@SZ-jw9my 4 жыл бұрын
Thanks, this was useful!
@rishavmasih9450
@rishavmasih9450 2 жыл бұрын
You're a saviour to dummies like me. I love to code but certain concepts live in vacuum in my head. Lol
@hwilliampolenz6713
@hwilliampolenz6713 2 жыл бұрын
Haha, you and me both; There are so many things that I don't fully understand.
@stevendeclercq3566
@stevendeclercq3566 Жыл бұрын
wow, this vlog was relieving and insightful lol. I'm just starting with a JavaScript bootcamp with Galvanize, and felt a bit panicky about understanding how my code is processed (what is a runtime environment)
@harshnaik6989
@harshnaik6989 3 ай бұрын
Exactly, thank you !
@voynich7119
@voynich7119 3 жыл бұрын
I'm currently learning web development on my own from online ressources and I can completely relate to that sentiment. A lot of basic regularily go over my head because nobody explains them to me. I mean, I know some stuff about computers. I worked as a network engineer for a while. But I feel like in programming and IT as a whole it's very easy to just miss some basic things completely and still have a certain understanding of how to use the technology.
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
Indeed, there are many, many things so that it can be easy to miss some basic things. I, too, have been thinking about web development lately and feeling I should probably learn some more of the basic things. I mean I literally don't even know how one typically sends an HTTP request back to the server that served the webpage in order to have some interplay between the webpage and the webserver. I mean, I realize it's probably extremely basic, and that I could probably even get away with simply running an HTTP server on a port and opening said port, and then sending requests to that open port, however something about that seems incorrect and there must be a "correct" and "professional" way of doing it! I must know! I also learned, recently, that one of the HUGE gaps in my understanding when I studied Computer Science at University (almost 10 years ago now) was simply that Java had already built a webserver & HTTP server program and the JSPs and JSFs of which I was learning was related completely and only to those particular Java programs that served your webpage; That is to say, I hadn't even learned what a "typical" webserver might be and I was already trying to grasp this "JSP, JSF" concept that was ONLY USED by this particular suite of Java server programs. Needless to say, I was completely confused, didn't understand ANY of it, and only recently did I even begin to grasp what a "webserver" program might even be considered. Now I also would like to learn more about Nginx and some of the other "professional" webserver programs out there as I would like to rectify my gross misunderstandings from nearly a decade ago.
@AnkurKumar-ur1cj
@AnkurKumar-ur1cj 4 жыл бұрын
I felt you there! 3:00
@Dtomper
@Dtomper 2 жыл бұрын
Thank you so much, really helpful.
@hwilliampolenz6713
@hwilliampolenz6713 2 жыл бұрын
You're welcome!
@pinkhairblackman8141
@pinkhairblackman8141 3 жыл бұрын
you are a hero
@jaredforeman5840
@jaredforeman5840 4 жыл бұрын
I gave your vid a like because you're like one of the only people who has ever given me this clear of an answer. Maybe you can help with another question. Obviously Runtimes are more than just java. Runtimes are "environments" that house code and then execute said code in a way that's OS/CPU agnostic yes? I ask this because there are cloud services that let you spin up and spin down runtimes on the fly whenever you need them, no OS required. When something like this happens, is the runtime environment speaking machine language directly or is it going through some basic interpreter? I guess to simplify the question, does a runtime environment need an OS to interpret and run its code to the CPU?
@hwilliampolenz6713
@hwilliampolenz6713 4 жыл бұрын
Hello! I'm glad that I could be of help. So as not to cause confusion, just about everything you'll encounter will have an OS sitting between the CPU and the code that you'd like to execute. Typically a cloud based service that you might "spin up" is running on some kind of virtualization software which is a fancy way of quickly installing and running another OS ontop of the OS that you already have running and installed. Virtualization is a pretty deep subject that's kind of new to me, but it's interesting. I hope that helps clarifies some things and answers your question!
@NXNAWAFXN
@NXNAWAFXN 3 жыл бұрын
big love form Saudi I have been looking for this answer thxxxxx
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
I'm glad I could be of help!
@taruchumccullough9045
@taruchumccullough9045 4 жыл бұрын
Thank you !!!
@riteshsonawane1372
@riteshsonawane1372 Жыл бұрын
Great man ❤
@riteshsonawane1372
@riteshsonawane1372 Жыл бұрын
Just had one question Nodejs or Golang
@koustav6884
@koustav6884 2 жыл бұрын
Thanks this video is helping me at 2021 as well :)
@hwilliampolenz6713
@hwilliampolenz6713 2 жыл бұрын
I'm glad! You're welcome!
@sommmtoooo
@sommmtoooo 8 ай бұрын
Useful @ 2023
@fatimaal-zahraa1618
@fatimaal-zahraa1618 4 жыл бұрын
I feel the pain when running to the real meaning while you where completely drowned and thinking that you know what it is!!! lol
@prgrmr-yn
@prgrmr-yn Жыл бұрын
Thanks for making me laugh genuinely hahah
@widnmbodken
@widnmbodken 3 жыл бұрын
Thank you for this
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
You're welcome!
@sheeeeeeeeeeeeeeesh
@sheeeeeeeeeeeeeeesh 2 жыл бұрын
thank you so much for this
@hwilliampolenz6713
@hwilliampolenz6713 2 жыл бұрын
You're welcome! Thanks for watching!
@his-worddevotionals540
@his-worddevotionals540 2 жыл бұрын
thank you Sir!
@gvinianidzegivi
@gvinianidzegivi 3 жыл бұрын
Great, thank you !
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
You're welcome! I'm glad that was helpful.
@codenukes5701
@codenukes5701 Ай бұрын
Thanks alooot.❤
@ask4144
@ask4144 Жыл бұрын
how I understood it: We run our Javascript(js) code on the BROWSER (chrome,firefox,safari etc). Let's call the browser a House no no rather an ENVIRONMENT Those browsers or environments are different but they have something common named engine that runs our code. Let's call the engine a RUNTIME Since the browser/environment contains a engine/runtime, let's then call the browser a RUNTIME ENVIRONMENT. Then some people say F*** the browser we need another environment. They take the engine/runtime from the browser and put it in a box. Do you know how they called the box ? They called it NODE.JS. "If you can't explain it simply, you don't understand it well enough".
@sharathkk1807
@sharathkk1807 Жыл бұрын
thank you so much 🤝, now i got clear picture
@RobNieves
@RobNieves 3 жыл бұрын
What’s a computer?
@joe-powell
@joe-powell 4 жыл бұрын
Is node something that runs between the browser and the server?
@hwilliampolenz6713
@hwilliampolenz6713 4 жыл бұрын
No, node is abstracted away from the browser. I think node is actually built from components that you would find in the browser. You can run javascript code outside (edit: the) browser on node, as if node was a "JRE" that consumes javascript code rather than java's bytecode. If you wanted to, you could run node completely on the backend / server. You could run it "where-ever you want", although that mostly means any where you can install node and boot it up.... so probably only your "backend".
@charlesagyeman7005
@charlesagyeman7005 3 жыл бұрын
Easy there my friend, at this pace in a little while you are going to ask yourself what is a compiler and they'll find you roaming the wild without clothes in 10 years
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
Hahaha, how do you think I ended up here?
@sj597
@sj597 3 жыл бұрын
I clicked this video to learn about the Run time environment even though I am not cs background but I really understood this concept. thanks for no bs explanation and you made me curious about CLOSURE SCRIPT?
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
Haha, yessir. Clojurescript provides support for the Clojure programming language in the front-end / web browser (which is almost always written in Javascript). I think it would deserve it's own video to explain it a bit better, so in lieu of a more appropriate explanation I'll leave a link to their website. Interestingly enough, the Clojurescript website states that they do indeed use the CLOSURE Google compiler and library to optimize their trans-piled Clojure code. clojurescript.org/
@JCAUDITS
@JCAUDITS Жыл бұрын
Quick question. When you say java, do you actually mean javascript anywhere in this video?
@user-jt9fi2kl6n
@user-jt9fi2kl6n 2 жыл бұрын
This is still a little confusing. I don't know Java so I couldn't understand the explanation you gave. And I know what binary is but I am having trouble understanding how it fits into this. The video helped a little, but there are a few gaps.
@yuka1367
@yuka1367 2 жыл бұрын
No everyone has knowledge about the compiler and interpreter. At least, I did't understand what is runtime when I saw it at the first time.
@lsdimontenegro5705
@lsdimontenegro5705 2 жыл бұрын
i love you LOL
@user-fl9xb7ef5f
@user-fl9xb7ef5f Жыл бұрын
Omg this is exactly the problem I’m having
@bubbletea8793
@bubbletea8793 Жыл бұрын
4:05 yw
@juniors3275
@juniors3275 Жыл бұрын
i think Node JS is a JS interpreter with a bunch of modules....i think...
@alirezaghanbarzadeh1679
@alirezaghanbarzadeh1679 3 жыл бұрын
lol so cool
@lack76
@lack76 3 жыл бұрын
Why do you need a runtime environment for JS?
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
That's a good question. I think someone wanted to run Javascript outside of the browser!
@lack76
@lack76 3 жыл бұрын
​@@hwilliampolenz6713 Sounds awful. Do you still use it? it seems to be heavily used and promoted. There must be some reason its used so much. I'm learning JavaScript as a necessary evil. I sure wouldn't want use it outside the browser where other things can be used.
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
@@lack76 Hmm.... interesting points. I use node in one project, however I haven't used a back-end / webserver framework yet for that project, but I probably will end up using some degree of Javascript on the back-end. Personally, most of the technology choices for me had more to do with ease and legacy code. For instance, since one project had originally been built with a mix of Python and Ruby for the back-end, I will probably continue to use those languages for the project as it's extra effort to switch to a different language and the associated libraries and frameworks. ...
@hwilliampolenz6713
@hwilliampolenz6713 3 жыл бұрын
@@lack76 ... I agree that you'll definitely want to learn Javascript for any kind of web-based or browser based application. You don't necessarily need to know it for the back-end, although in some sense it's easier as you won't need to learn another language to operate a back-end. You can just continue using Javascript with a node based back-end framework like Express or one of the others frameworks that you prefer. I think it's almost definitely necessary to learn Javascript for browser based applications and therefore the vast majority of developers will need to learn it and so consequently this same majority of developers can save some time if you don't need to learn yet another language to manipulate the back-end. I am guessing this is at least one of the impetuses for creating node.js and allowing Javascript to operate outside of the browser.
@jorims8537
@jorims8537 2 жыл бұрын
took half the video to get to the point
@PankajSharma-wn3rq
@PankajSharma-wn3rq 2 жыл бұрын
will commenting here make me look stupid, host???
@digvijayyamagekar4300
@digvijayyamagekar4300 3 жыл бұрын
Scripts and shits.... all goes on
JDK, JRE, JVM: What Are They and What Are Their Differences?
7:57
The Learn Programming Channel
Рет қаралды 86 М.
GIANT umbrella by Tsuriki Show
00:15
Tsuriki Show
Рет қаралды 8 МЛН
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 7 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 23 МЛН
JavaScript: How It's Made
10:54
Fireship
Рет қаралды 875 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
JavaScript Runtime Environment
7:17
procademy
Рет қаралды 26 М.
Understanding the V8 JavaScript Engine
10:44
freeCodeCamp Talks
Рет қаралды 104 М.
JRE vs. JDK
5:33
IBM Technology
Рет қаралды 13 М.
What is Node.JS and its Pros and Cons
8:19
AltexSoft
Рет қаралды 84 М.
5 Design Patterns Every Engineer Should Know
11:51
Traversy Media
Рет қаралды 936 М.
GIANT umbrella by Tsuriki Show
00:15
Tsuriki Show
Рет қаралды 8 МЛН