Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRobert Roberson
Courses Plus Student 8,401 PointsThe last three exercises mean nothing to me. Are these video supposed to correlate to what I am supposed to do?
He does a lot in the video, and in the beginning, it seemed to me that I was to make correlations to what he did in the video and what I was to do in the exercise. We seem to have moved from that pattern to he does several things in the video and I am supposed to what he wants me to do.
public class GoKart {
public static final int MAX_BARS = 8;
private String mColor;
private int mBarsCount;
public GoKart(String color) {
mColor = color;
mBarsCount = 0;
}
public String getColor() {
return mColor;
}
public void drive() {
drive(1);
}
public void drive(int laps) {
// Other driving code omitted for clarity purposes
mBarsCount -= laps;
}
public void charge() {
while (!isFullyCharged()) {
mBarsCount++;
}
}
public boolean isBatteryEmpty() {
return mBarsCount == 0;
}
public boolean isFullyCharged() {
return mBarsCount == MAX_BARS;
}
}
Derek Markman
16,291 PointsThe code example you're asked to solve are changed a bit, but to answer your question, yes. The videos correlate to the coding exercises.
3 Answers
tobiaskrause
9,160 PointsChallanges are created by the create of the course which is usually the teacher. All the teachers have an individual style of teaching. Some of them want to do the same stuff like in the video but most of the time they want you to understand what they are doing and WHY they are doing it. You won't learn anything by copy and pasting the code. You have to understand what the code does and what the teacher is saying. If you jus t try to finish the challanges without understanding the content you wont have success.
Usually you have to pratice the stuff of the videos in the challanges. In the video titles you see the topic and usually you will have to do a exercise about this topic. But that doesn't mean your exercise exactly the same as the stuff in the video. The teacher want you to use your brain first and to think about what you have to do in this challange and how you could do it. Sadly some people just copy the solution from google and won't learn anything.
tobiaskrause
9,160 PointsHe's justa spammer i guess his acc is already deleted
Robert Roberson
Courses Plus Student 8,401 PointsI have understood nothing from the beginning. I suppose this is not for me.
Alexander Kobilinsky
359 PointsRobert Roberson
Courses Plus Student 8,401 PointsI don't understand why you've given me this email address?
Robert Roberson
Courses Plus Student 8,401 PointsRobert Roberson
Courses Plus Student 8,401 PointsPlease don't give me an answer, Just let me know if he does in the video what I am to do in this exercise. If he does I will watch again and try to figure it out.