Skip to content

Instantly share code, notes, and snippets.

@aprildagonese
Last active January 21, 2019 19:31
Show Gist options
  • Save aprildagonese/efecf266a9ea405439ae954f31d3f856 to your computer and use it in GitHub Desktop.
Save aprildagonese/efecf266a9ea405439ae954f31d3f856 to your computer and use it in GitHub Desktop.

Additional Questions

  1. I feel like I was just copy/pasting and following instructions on task manager, but understood very little about what I was doing... Is that normal? What should I do?
  2. What's the difference between a view.erb file and a view.html.erb file?

How The Internet Works Questions

Describe, step by step, what happens when I type www.example.com into my browser and try to go to the page?

  • Your browser does a DNS lookup request to find the IP address attached to the domain and establishes a TCP connection to the web server. Once the server acknowledges the connection, the browser sends an HTTP request to the server to retrieve content. The server replies and sends packets of content, which are then unpacked by the browser and displayed.

What does HTTP stand for?

  • Hypertext Transfer Protocol

What protocol does the World Wide Web use?

  • Most commonly, HTTP

Each computer on the Internet is assigned an IP address, what does IP stand for?

  • Internet Protocol

What does DNS stand for?

  • A. Domain Name System

How are text domain names matched to their respective numeric IP addresses.

  • Through DNS servers, which are a massive database that map domain names to IP addresses

What is the client?

  • E. The computer which the IP address belongs to

What does URL stand for?

  • Uniform Resource Locator

What are protocols

  • D. The standardised method for transferring data or documents over a network

What is the www portion of a url?

  • It's a domain/subdomain that indicatest that something is a webpage and that it uses HTTP

What is The markup language used for all web documents?

  • HTML

What is the organization that monitors web technologies?

  • W3C (World Wide Web Consortium)

What is the Protocol for transferring web documents on the Internet?

  • File Transfer Protocol

What matches the domain names with numeric IP addresses?

  • Domain Name Service

CRUD CFU

(I am just copying these answers from the CFU post, because honestly I don't understand the exercise enough to be able to answer them myself...)

Define CRUD.

  • Create, read, update, destroy = the concept that each element of a database needs to be able to be created, read, updated, and destroyed through the controller/view

Why do we use set method_override: true?

  • it allows you to call methods in your controller that are otherwise unable to be interpreted by HTML

Explain the difference between value and name in this line: .

  • name='task[title]' is implying that the value of this text input will be the value for "title" in the parameter hash, value="<%= @task.title %>"/> is implying that the default value of this text box will be the title associated with the ruby object "task"

What are params? Where do they come from?

  • params are values taken from the HTML, whenever an input or value has a name="..."

Check out your routes. Why do we need two routes each for creating a new Task and editing an existing Task?

  • the /edit route and the /new route both make different requests to the SQL database through the ruby class Task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment