Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 3.28 KB

README.md

File metadata and controls

61 lines (50 loc) · 3.28 KB

Please help us improve and share your feedback! If you find better tutorials or links, please share them by opening a Pull Request.

HackYourFuture Node.js - Reading material week 2

Last weeks Summary

Last week we looked at building an HTTP interface. The interface allowed us to get a state, and manipulate the state (add, subtract, reset).

Today's meal

  1. Recap last week
  2. Homework
  3. Questions & Answers (Q&A)
  4. Other topics
  5. Persisting data beyond the lifetime of the app.
  6. Building a Command Line Interface / Working with arguments
  7. Using Node.JS's FileSystem (FS)
  8. CRUD operations
  9. This week's assignment

Reading material

Something about ES6 I want you guys to know

You may hear us talking about this "ES6" all the time. ES6 basically means: the latest version of JavaScript. It has a lot of really nice new features that makes life as developer easier. For you guys, you should remember the following:

During the NodeJS course, we will teach you some ES6 features, like Fat Arrow. It's extremely important to know whether a function comes from ES6 or from an older version of JavaScript. Why? Because browsers don't support every new feature just yet. With Node, on the other hand, you can always control which version of Javascript is running, because it's running on your computer, not in the browser. Node Version 6.x that you are running supports most ES6. So in summary: if you're working on the frontend, you probably don't want to use es6 just yet. In backend, type node --version to see which version you are running, and make sure everyone on the team has the same version by adding "engine" to package.json like so:

"dependencies": {
  ...
},
"devDependencies": {
  ...
},
"engines": {
  "node": ">=6.5.0" // this means you need 6.5 or higher
},

1. ES6: Fat Arrow functions

This is one example of how ES6 can help us write cleaner code. I'm adding this as first reading material because it's used a lot on the NodeJS documentation website, so it's a good idea to understand what this means. Bonus points if you write your callbacks this way.
Blogpost Sitepoint
Video

2. NodeJS Process:

Don't have to remember everything in this video, just a nice outline
Egghead video tutorial
Only read the part about "process.argv"
Node.JS docs - process.argv

3. NodeJS FS

Only read the part about readFile, appendFile (you will need this in your assignment)
Node.JS docs - fs.readFile
Node.JS docs - fs.appendFile

4. Node Fundamentals

Read parts:

As you finish that up, don’t forget to watch next week’s video playlist to prepare for Express.

You’ll find it here: Lynda 💁