Skip to content

Instantly share code, notes, and snippets.

GraphQL
Brief summary of what you researched
- GraphQL is a way of simplifying API requests with simplified syntax, and other paterns that can reduce the number and complexity of API calls.
How does it extend your current programming foundation?
- GraphQL is an additional tool in my toolbelt for simplifying API calls. It allows me to traverse related objects and their fields letting clients fetch related data in one request instead of making several roundtrips as one would need in a classic REST architecture.
If you were asked in an interview about the topic you researched, what would you want to highlight?
- I am interested learning it and implementing it on future projects since it seems to be a great way to make code more readable, concise and efficient.
In a gist/document answer the following-questions at a high-level. We will discuss this further during week 1.
What does CORS stand for? cross-origin sharing standard

Rails Database Development Checklist

Warning: This checklist does not rely on TDD to build up the rails app. It uses some MVC code snippets, so make sure to replace them with names you use on your project. Most references are from

https://backend.turing.io/module2/misc/blogger
https://github.com/turingschool-examples/task_manager_rails
  1. Create Rails Application
  • From the command line, start a new rails app. For example,
    rails new project_name -T -d="postgresql" --skip-spring --skip-turbolinks
    

Intermediate SQL Workshop

  • Run psql
  • You may need to run CREATE DATABASE intermediate_sql;
  • To exit this shell, you can run CTRL d

Create tables

Let's create some tables in the database.

B2 Intermission Work

Answer these Check for Understanding questions as you work through the assignments.

HTML

  1. What is HTML? HTML is the standard markup language for creating Web pages. HTML stands for Hyper Text Markup Language. HTML elements tell the browser how to display the content.
  2. What is an HTML element? An HTML element is defined by a start tag, some content, and an end tag. Note: Some HTML elements have no content (like the
    element). These elements are called empty elements. Empty elements do not have an end tag!
  3. What is an HTML attribute? Attributes are used to provide additional information about HTML elements. Attributes are always specified in the start tag
  4. What is the difference between a class and an id? When would you use one vs. the other? **A class is used to define repetitive CSS properties. The HTML id attribute is used to specify a unique id for an HTML element, and is also used by JavaScript to access and manipulate the element with the specific id. A