-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Introduction
In this lesson we will introduce testing and pair programming. We will continue to work collaboratively by submitting pull requests and reviewing each other's code. We will also learn the value of writing clean, readable code.
By the end of this lesson you will:
- write code to fix an existing suite of tests.
- review code and give feedback.
- refactor your code.
Read the lesson guide for help.
Get an existing suite of tests to pass
- Open up your codespaces for the plus-plus repo.
- Complete each step in https://github.com/CodeChica/plus-plus/tree/main/labs/ruby#lab-ruby
Peer Review
Once you have submitted your pull request. Find someone to review and approve
the pull request.
- Submit your pull request for review.
- Review a pull request. Use the "critique sandwich" method to give feedback.
Discussion
Please add a comment to this issue to answer the following questions:
- What are some Ruby data types?
- What is an object in Ruby?
- Why are tests important?
- What is "Red, Green, Refactor"?
- What is "Arrange, Act, Assert"?
- Name some strategies for writing clean code.
Conclusion
In this lesson, you learned about test driven development and the reasons for its use. You also learned some intro Ruby concepts in order to get your first suite of tests to pass and to write your own tests. Finally, you practiced peer reviewing someone else's code, and refactoring to make your code better.
Bonus (optional)
- Complete each step in https://github.com/CodeChica/plus-plus/tree/main/labs/nodejs#lab-nodejs
- Complete each step in https://github.com/CodeChica/plus-plus/tree/main/labs/golang#lab-go