Skip to content

Instantly share code, notes, and snippets.

@kristindiannefoss
Created July 6, 2016 02:53
Show Gist options
  • Save kristindiannefoss/f955a5ca6b0b7a2b30e7a1987e409737 to your computer and use it in GitHub Desktop.
Save kristindiannefoss/f955a5ca6b0b7a2b30e7a1987e409737 to your computer and use it in GitHub Desktop.
homework for july 5th

In the context of Node, what is a module?

  • A module in Node seems similar to Ruby in that it simplifies and organizes code, it can be plugged in and used in different places, but it is like a class because it stands alone. Like a cute little code nugget.

The code examples from the second blog post look very different from the first. Why?

  • From what I understand, it's because require.js is simplifying things and doing work for you, whereas in the first example, you need to be more explicit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment