NODE.JS
What is NODE.JS?
- a javascript runtime (code is executed when it is run) built on chrome’s v8 engine
- an event-based, non-blocking, asynchronous I/O
- v8 engine is the open-source JS engine which runs in chrome
- node binaries v. version manager
- using a version manager to install node.js is better bc it negates permission issues when using node with npm and lets me set a node version on a per-project basis
- my version is 6.14.13
- introducing npm, the JS package manager
- npm is the world’s largest software registry
- installing a package globally
- installing a package locally
What is node.js used for?
- installing and running various tools designed to automate the development of a JS app
6 Reasons for Pair Programming
- practice of two developers sharing a single workstation to interactively tackle a coding task together
- two roles:
- driver: person typing
- navigator: thinks about the big picture, what’s next, how an algorithm might be converted into code, scans for bugs and typos
1. Greater efficiency
- easier to catch mistakes in the moment
- takes longer at first but produces higher quality code that needs less revision later
- one programmer can take over when the other gets stuck
2. Engaged collaboration
- programmers focus better with a partner around
- less need for additional help
3. Learning from fellow students
- exposes programmers to different techniques and ideas
4. Social skills
- builds communication
- forced to deal with different personalities
5. Job interview readiness
- pairing an applicant with an employee is a common step during the interview process
6. Work environment readiness
- employers expect to train fresh hires with pair programming
Lecture notes
WRRC- Web Request Response Cycle
- client types into my browser twitterdotcom
- client can be anything internet connected
- slient is whoever is asking for information
- get request: message is sent out into the internet and to twitter’s server for information
- server sends us back access to twitter’s website
- server is the thing that is giving back information/error message
the cloud
- kind of a marketing term/buzzword