Fork this respository. Answer the questions to the best of your ability. Try to answer them with limited amount of external research. These questions cover the majority of what we've learned this week (which is a TON!).
Note: When you're done, submit a PR.
- What is
json
, what does it stand for, and why is it important? - What kind of object is JSON in Ruby? How do we know it's JSON?
- What's the difference between
joins
andincludes
in ActiveRecord? - What's an API?
- How do we test an internal API (in general)?
- What are two different ways to customize your
json
? - If the the methods below return collections, what object (class) will they return? What kind of objects will be returned inside of that object?
.find_by_sql
.connection.execute
.where
- (Security) What is SQL injection? When can it happen? How can you prevent it?
- What do you need to do differently when you adding
POST
,PUT
, andDELETE
endpoints to your API when using the--api
flag when creating a Rails app versus not using the flag?- Hint: What class does
ApplicationController
inherit from when creating a Rails project with the--api
flag? What about without the--api
flag? What do they do differently? Why?
- Hint: What class does
- What's your process for solving advanced SQL or ActiveRecord lookups?
- What is an ORM, what does it stand for, and why is it helpful?
- How do you create a record in the following table in SQL? In Active Record?
(Users table with columns first_name, last_name, email, and age) - Given an array numbers = [1,2,3,4,5], find the sum of the doubles of all the numbers.
Rate yourself on the following scale.
4 I know and understand all these concepts and did not have to look anything up
3 I know and understand most of these concepts but had to look something up
2 I am uncertain about some of these concepts and had to look some things up ^^
1 I am feeling lost about with these concepts and had to look many things up ^^
^^ Please let an instructor know where you'd like support to catch you up.
Fork this respository. Answer the questions to the best of your ability. Try to answer them with limited amount of external research. These questions cover the majority of what we've learned this week (which is a TON!).
Note: When you're done, submit a PR.
- What's OAuth?
- What are some advantages/disadvantages of implementing OAuth?
- How many exhanges of information need to take place before a user is authenticated with OAuth?
- Why do we want to create services?
- Why is it good practice to create PORO's with the data received from an API?
- What do we use VCR for? Why is it a good idea to use this tool?
- What does HTTP stand for?
- How do you create the following table in SQL? In Active Record?
(Users table with columns first_name, last_name, email, and age) - Writing Files: given a text file located at "/Documents/pizza.txt", write code to read the file from the filesystem, then write a new file at "/Documents/line_count.txt" containing the number of lines in the original file.
Rate yourself on the following scale.
4 I know and understand all these concepts and did not have to look anything up
3 I know and understand most of these concepts but had to look something up
2 I am uncertain about some of these concepts and had to look some things up ^^
1 I am feeling lost about with these concepts and had to look many things up ^^
^^ Please let an instructor know where you'd like support to catch you up.
Fork this respository. Answer the questions to the best of your ability. Try to answer them with limited amount of external research. These questions cover the majority of what we've learned this week (which is a TON!).
Note: When you're done, submit a PR.
- What is Multitenancy how does it add value as a multitenancy provider?
- How might multitenancy impace your routes/controllers?
- What is a strategy for authorization when dealing with multitenancy?
- What are some strategies you can use to abide by the one instance variable per controller action rule?
- What is a callback? How many of them can you list?
- How do you create a Database named Turing in raw SQL and in a Rails environment?
- What does a Ruby Class inherit from?
Rate yourself on the following scale.
4 I know and understand all these concepts and did not have to look anything up
3 I know and understand most of these concepts but had to look something up
2 I am uncertain about some of these concepts and had to look some things up ^^
1 I am feeling lost about with these concepts and had to look many things up ^^
^^ Please let an instructor know where you'd like support to catch you up.