Tightening the loop and getting visibility (on the web).
In this program, there are many bugs. You have to find them, then fix them, then make sure the tests are passing.
Last week, you practiced this debugging method:
- Tighten the loop (find the exact line the bug is coming from)
- Get visibility (use
p
to inspect everything in the region of that line) - Once you know the one thing that is wrong, out of place, misspelled, or not giving you what you expect, try to fix it.
This week, you'll build these skills. You'll practice:
- Tightening the loop across the whole web stack: from the browser, to a template, to a controller, to a Ruby object, to a test.
- Getting visibility in the browser (Network tab), and templates, controllers, Ruby objects and tests (error messages and p).
-
Clone the repo.
-
Install the gems.
- Run the tests with
rspec
.
-
Run the app with
shotgun
. This will automatically reload your changes so you don't need to restart your server on each code change. -
Browse the app at the URL in your server logs.
As a person
So I can feel more relaxed
I want to state a thing I'm struggling with and see it shouted by the table flip emoji
As a person
So I can feel more relaxed
I want to see a random happy emoji on the home page