NODE.JS

We are just starting a new course module. This topic matters as it relates to understanding what node.js is and how it works since we are going to be using it in our next big project.


An Introduction to Node.js

What is node.js?

Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google’s V8 JavaScript engine and libuv library.

Stack Overflow

In your own words, what is Chrome’s V8 JavaScript Engine?

It is the open-source JavaScript engine that runs in Chrome and similar browsers. It compiles JS so it can run on our machines.

What does it mean that node is a JavaScript runtime?

It means that it is a program we can use to execute JavaScript on our computers.

What is npm?

Node Package Manager (npm) is the world’s largest Software Registry. There are over 1,000,000 packages of JavaScript code available to download. Open-source developers use it to share software.

What version of node are you running on your machine?

v18.5.0

What version of npm are you running on your machine?

8.12.1

What command would you type to install a library/package called ‘jshint’?

npm install -g jshint

What is node used for?

It is used to install and run various build tools designed to automate the process of developing a modern JavaScript application.


6 Reasons for Pair Programming

What are the 6 reasons for pair programming?

  1. Greater efficiency
  2. Engaged collaboration
  3. Learning from fellow students
  4. Social skills
  5. Job interview readiness
  6. Work environment readiness

In your experience, which of these reasons have you found most beneficial?

Engaged collaboration and Learning from fellow students. The few times that I had a chance to pair program I definitely felt more focused on the code than if I was working alone, it also gave me to opportunity to learn different approaches to problem solving by collaborating with my teammates.

How does pair programming work?

It involves two roles: the Driver and the Navigator. The Driver is the programmer who is typing, the only one writing code. The Navigator uses their words to guide the Driver but does not provide any direct input to the computer, should not be writing any code.


Things I want to know more about

  • I would like to understand Node.js better and to learn how to implement it in practice.

-back