Readings: NODE.JS
An Introduction to Node.js on sitepoint.com
-
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. -
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.
Is responsible for compiling JavaScript directly to native machine code, that means Node.js is a JavaScript runtime.
V8 engine features -> a file system API, an HTTP library, and a number of operating system–related utility methods.
-
What does it mean that node is a JavaScript runtime?
Node.js is a program we can use to execute JavaScript on our computers. -
What is npm?
npm is a package manager for the JavaScript programming language, (Open-source developers use npm to share software). -
What version of node are you running on your machine?
v12.21.0 -
What version of npm are you running on your machine?
7.7.5 -
What command would you type to install a library/package called ‘jshint’?
npm install -g jshint -
What is node used for?
- 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.
- it can be used as a scripting language to automate repetitive or error prone tasks on your PC.
- It can also be used to write your own command line tool, such as this Yeoman-Style generator to scaffold out new projects.
-
Node.js can also can be used to build cross-platform desktop apps and even to create your own robots.
6 Reasons for Pair Programming
- What are the 6 reasons for pair programming?
- Greater efficiency
- Engaged collaboration
- Learning from fellow students
- Social skills
- Job interview readiness
- Work environment readiness
-
In your experience, which of these reasons have you found most beneficial? Learning from fellow students.
- 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
-
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.
<!– Bookmark/Skim
https://locationiq.com/ https://www.npmjs.com/package/axios https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await –>