reading-notes

NODE.JS

1. What is node.js?

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

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

The V8 engine is the open-source JavaScript engine that runs in Google Chrome and other Chromium-based web browsers, including Brave, Opera, and Vivaldi.

3. What does it mean that node is a JavaScript runtime?

This means that Node.js is a program we can use to execute JavaScript on our computers. In other words, it’s a JavaScript runtime.

4. What is npm?

npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them.

5. What version of node are you running on your machine?

v14.17.0

6. What version of npm are you running on your machine?

6.14.13

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

npm install -g jshint

This will install the jshint package globally on your system.

8. What is node used for?

These build tools come in all shapes and sizes, and you won’t get far in a modern JavaScript landscape without bumping into them. They can be used for anything from bundling your JavaScript files and dependencies into static assets, to running tests, or automatic code linting and style checking.

Reasons for Pair Programming

1. 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

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

Learning from fellow students : Everyone has a different approach to problem solving; working with a teammate can expose developers to techniques they otherwise would not have thought of. If one developer has a unique approach to a specific problem, pair programming exposes the other developer to a new solution.

3. How does pair programming work?

pair programming commonly involves two roles: the Driver and the Navigator. The Driver is the programmer who is typing and the only one whose hands are on the keyboard. Handling the “mechanics” of coding, the Driver manages the text editor, switching files, version control, and—of course writing—code. The Navigator uses their words to guide the Driver but does not provide any direct input to the computer. The Navigator thinks about the big picture, what comes next, how an algorithm might be converted in to code, while scanning for typos or bugs. The Navigator might also utilize their computer as a second screen to look up solutions and documentation, but should not be writing any code.