Node.js Flashcards
What is a CLI?
Command-line interface- using text input to execute commands
What is a GUI?
Graphical user interface- interface that allows user to interact with devices with graphical icons (or audio indicators)
Give at least one use case for each of the commands listed in this exercise.
- man- look up system reference manuals, which can be looked up by specific section
- cat- concatenate files together and printing them
- ls - list information about files (contents of the current directory), like a list of names
- pwd - print name of current directory, tells whole path to the directory
- echo - display a line of text, you can add that text as a new file
- touch- update file timestamps to the current time
- mkdir - make new directories; create child directories or nest directories
- mv- move files, rename files
- rm- delete files or directories
- cp- copy files and directories
What are the three virtues of a great programmer?
- Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
- Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
- Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.
What is Node.js?
Program that allows javascript to be run outside of a web browser
What can Node.js be used for?
Building back-end applications and command line programs. Or any type of automation developers wish to perform. Can build WEB SERVERS.
What is a REPL?
Read, evaluate, print, loop
Programming environment that takes user inputs, executes them, and returns the results to the user, then loops
When was Node,js created?
2009
What back end languages have you heard of?
Python, C++, C, Java
What is a computer process?
An instance of a computer program
Roughly how many computer processes are running on your host operating system (Task Manager or Activity Monitor)?
250
Why should a full stack Web developer know that computer processes exist?
Full stack development is based on having multiple processes work together at the same time to deliver a working application
Another reason is so you can kill a process if needed
What is theprocessobject in a Node.js program?
A global object that provides information about, and control over, the current Node.js process.
How do you access theprocessobject in a Node.js program?
just typing process
What is the data type ofprocess.argvin Node.js?
An array of command line arguments (string) from when the Node.js process was launched.