Skip to content

Instantly share code, notes, and snippets.

View NickyBobby's full-sized avatar

Nicholas Dorans NickyBobby

View GitHub Profile
@NickyBobby
NickyBobby / require-1511.markdown
Created June 12, 2016 23:00 — forked from rrgayhart/require-1511.markdown
The Concept of Require

When you start working with WebPack for GameTime, you'll notice that you can't just define a variable in one file and find it in another as easily as you can in Rails.

Read Node.js, Require and Exports and Organize Your Code with RequireJS

Fork this gist and answer the following questions:

  • In the context of Node, what is a module?
  • The code examples from the second blog post look very different from the first. Why?

Setting Group Expectations

Group Member Names: Nick D, Nate, Chad

    1. When are group members available to work together? What hours can each group member work individually? Are there any personal time commitments that need to be discussed?
  1. Group members are flexible to work anytime. Nick has some meetups that he wants to go to but other than that he is free. We don't want to work past 9 o'clock during the week. Time commitments have been worked out.
    1. How will group members communicate? How often will communication happen, and how will open lines of communication be maintained?
  1. Communication will mainly happen on Slack but we will leave informative comments on all pull requests.
@NickyBobby
NickyBobby / cfu_crud_in_sinatra.markdown
Last active February 3, 2016 00:38 — forked from rwarbelow/cfu_crud_in_sinatra.markdown
CRUD in Sinatra -- Check for Understanding
  1. CRUD stands for Create, Read, Update and Delete. These are the 4 basic functions for managing a database.

  2. So there are seven verb + path combos, the first two are Create-POST and Create-PUT. They are very similar but only difference is you use the POST method to create a new item for the database and the PUT method to modify a current item from the database. The next verb/path combo is Read-GET and this is the way you retrieve data from a webpage for viewing purposes only. The next three are Update-PUT, Update-POST and Update-PATCH. I believe the Update-PUT is modifying a current item within a database, which is also what I believe Update-POST does. Only difference is that Update-POST is for older frameworks that don't use the new PUT method yet. Next is Update-PATCH, which I believe is only a partial modification to an existing item within a database. And last is the Delete-DELETE verb/path combo and this just deletes an item altogether from within a database.

  3. The 'set method_override: true' is to