Reading-Notes

NODE.JS Notes

This topic is important to because I believe Node to be essential in creating your own servers, and host things from my machine.

References

Intro to Node Pair Programming Geocoding API Docs Axios Docs Async and Await

Retrospective 1

Intro to NODE.js

Node is a program we can use to execute JavaScript on our computers (JavaScript Runtime)

Its built off the V8 engine (JavaScript Opensource engine) with file system API, an HTTP library and more utility methods.

Node can be installed through Npm or VM (version manager)

You can use npm init to install a package locally

What is Node used for

Bunding JS files, running test and more.

It lets use run JS on the server

Only downside of this is it runs on a single thread which leads to limitations. CPU intensive operations should be decided elsewhere.

Real time applications like chat sites, building Api’s, or a lot of data streaming.

Intro to NODE.js Questions

  1. What is node.js?
  2. In your own words, what is Chrome’s V8 JavaScript Engine?
  3. What does it mean that node is a JavaScript runtime?
  4. What is npm?
  5. What version of node are you running on your machine?
  6. What version of npm are you running on your machine?
  7. What command would you type to install a library/package called ‘jshint’?
  8. What is node used for?

Intro to NODE.js Answers

  1. Its an program we use to execute JS on our computers.
  2. Its an engine that allows javascript to be executed.
  3. Its a program that runs alongside othher programs.
  4. Its a package manager that allows us to install javascript.
  5. v19.9.0
  6. 9.6.3
  7. npm install jshint
  8. Node is used to create real time applicaitons and also to bundle files in JS, and more.

Pair Programming

Pair programming is a way for developers to develop their skills in a way thats beneficial to another person. It helps a coder develop other skills besides coding as well. These include: Social Skills, Job readiness, and interview readiness.

There’s a lot of things people don’t know, or forget so coding with a peer helps eliminate that by working together and having a fellow developer over your shoulder.

Pair Programming Questions

  1. What are the 6 reasons for pair programming?
  2. In your experience, which of these reasons have you found most beneficial?
  3. How does pair programming work?

Pair Programming Answers

  1. Greater Efficiency, Engaged Collaboration, Learning from others, Social skills, Job interview readiness, and work environment readiness.

  2. I feel like learning from others, but also social skills because I get closer with my peers when we work together and solve hard problems with eachother (leetcode).

  3. Reviewing eachother codes, having one code but being told what to do.

Things I want to know more about

I want to know more about Node, and what applications I could probably make with it right now. I want to learn more about applying this to making servers, and creating cool apps.