Skip to content

Latest commit

 

History

History
58 lines (28 loc) · 1.75 KB

Week-4.md

File metadata and controls

58 lines (28 loc) · 1.75 KB

Week 4 Assessment

Try your best to answer each question on your own before looking up the answer online. Once you're done writing your first answer, you can google the question and write the best answer you find.

1. What is a method in Ruby? How is it different or similar to functions in JavaScript?

2. What does it mean that a class inherits from another class? Try to explain Ruby inheritance.

[Your Answer]

[Googled Answer]

3. What is rspec and what is the general process for writing tests in RSpec?

//Your Answer

//Googled Answer

4. Name three possible non-inheritance relationships between ruby objects?

//Your Answer

//Googled Answer

5. What do we call the #{} convention used below? What is it accomplishing?

x = 1022
puts "I am printing a random number #{x}"

6. How do you feel about testing right now? What potential pros/cons/barriers/advantages do you see to implementing BDD in your own code?

//Your Answer

//Googled Answer

7. What is an instance variable in Ruby? How is it different from a normal, local variable?

//Your Answer

//Googled Answer

8. Ruby has a great community and tons of free resources to help you learn. Here is the long list of great resources: https://www.ruby-lang.org/en/documentation/. Below are a few popular ones:

Choose one of these resources and go through the material (not for hours, only looking for around 10min of your time) then come back here and list a few new things you learned about Ruby.