What is
and how it became so popular?
Trivikram Kamat
3
My history with Node.js
- Have been using Node.js for 2.5 years
- Started contributing to Node.js core in Oct 2017
- providing HTTP/2 support
- Became Node.js core collaborator in March 2018
- Conducted two internal Node.js Code+Learn events
- Mentoring two more Code+Learn events
- Speaking about unit testing in Node.js core at NodeConf EU 2018
How popular is Node.js?
Why should you be excited about Node.js?
- Extremely simple and minimal
- Easy to discover and consume packages
- Increases developer productivity
- True asynchronous I/O operations
What will you learn?
- Quick history up to V8
- CPU and machine code
- JavaScript and ECMAScript
- JavaScript Engines
- Chrome's V8
- How can JavaScript manage a server?
- What problems Node.js solves?
- We'll write a Node.js server!
Q: Why was the JavaScript reality show cancelled?
A: Because it was scripted! 😉
CPU and Machine Code
Programming Language
Â
Machine Code
Instructions Sets
-
ARM
-
IA-32
-
MIPS
-
x86
A standard which JavaScript is based on
JavaScript Engine
A program which executes JavaScript code
Chrome
Mozilla
Firefox
Microsoft
Edge
Apple
Safari
V8
SpiderMonkey
ChakraCore
JavaScriptCore
Q: How do you comfort a JavaScript Bug?
A: You console it 😄
Source: https://elijahmanor.com/
JavaScript
Code
Machine
Code
Chrome's V8 engine
JavaScript
Code
Machine
Code
Your C++ Program
What JavaScript had to do to manage a server?
- Better ways to organize our code into reusable pieces
- Ways to deal with files and databases
- Ability to communicate over the internet
- Ability to accept standard request and send responses
Why are businesses excited about Node.js?
It's easy to just employ full stack engineers who write JS code for both client and server side
Client
Server
Request
Response
Browser
JavaScript
Server
Perl/PHP/Python
Java/C# etc
JavaScript
Talk is cheap,
Show me the Code!
As Abraham Lincoln once said:
- Linus Torvalds
Creator of Linux and Git
Let us write a Node.js server in 60 seconds!
Thank you for listening!
Trivikram Kamat
Twitter: @trivikram
Github: @trivikr
Slides: https://slides.com/trivikram/what-is-nodejs
What is Node.js
By Trivikram Kamat
What is Node.js
What is Node.js and how it became popular
- 841