Advertisement
English transcript
Next, we'll fix the behavior of the Order button.
Once I change the quantity to something like six, if I hit the Order button,
the price should update to $30.
However, when I click the Order button,
it always changes the quantity back to five and the price to $25.
So this behavior is incorrect.
To test your understanding of everything we've learned so
far, I want you to go ahead and fix this bug on your own.
I'm confident that you can do it.
This is a very common occurrence during app development.
You build out more functionality of your app, like this quantity picker, but
then it can have ripple effects on the rest of your app.
And it may break something, like this Order button.
So you have to just go back and fix that later.
Once you've completed this task, this is what the app should look like.
If I increase the quantity to something like six, and
I hit the Order button, then the price changes to $30, which is correct.
To help you tackle this problem,
first identify all the things that are wrong with the current state of the app.
You can look at it on your device, and so
it will be easier than looking at this screenshot.
This screenshot shows setting the quantity to six and
then hitting the Order button and seeing the result on the screen.
I want you to describe in words the gap between what we have now and
what we want.
Be as detailed as possible by writing your answer in this box.
The more specific you can get about all the things that are wrong with the app,
the easier it will be to fix the problem because you'll have almost a task list
on how to get to the ideal solution.
Then after you've planned how you will attack the problem, go ahead and
implement those changes in your app.
Once the Order button works as expected, pat yourself on the back, and
then check this box to continue.
Once I change the quantity to something like six, if I hit the Order button,
the price should update to $30.
However, when I click the Order button,
it always changes the quantity back to five and the price to $25.
So this behavior is incorrect.
To test your understanding of everything we've learned so
far, I want you to go ahead and fix this bug on your own.
I'm confident that you can do it.
This is a very common occurrence during app development.
You build out more functionality of your app, like this quantity picker, but
then it can have ripple effects on the rest of your app.
And it may break something, like this Order button.
So you have to just go back and fix that later.
Once you've completed this task, this is what the app should look like.
If I increase the quantity to something like six, and
I hit the Order button, then the price changes to $30, which is correct.
To help you tackle this problem,
first identify all the things that are wrong with the current state of the app.
You can look at it on your device, and so
it will be easier than looking at this screenshot.
This screenshot shows setting the quantity to six and
then hitting the Order button and seeing the result on the screen.
I want you to describe in words the gap between what we have now and
what we want.
Be as detailed as possible by writing your answer in this box.
The more specific you can get about all the things that are wrong with the app,
the easier it will be to fix the problem because you'll have almost a task list
on how to get to the ideal solution.
Then after you've planned how you will attack the problem, go ahead and
implement those changes in your app.
Once the Order button works as expected, pat yourself on the back, and
then check this box to continue.