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 trial

General Discussion

Jennifer P
Jennifer P
1,621 Points

Constantly getting stuck at Challenge Questions - Do I just have to keep retrying and waiting before I can move on?

I have tried a few tracks here on Treehouse. It's taken me awhile before settling on a language that I wanted to learn. With each track, I have gotten stuck at some of the challenges, posted a question, and I either figure it out on my own or use the advice of a generous contributor to my question. On my most recent challenge, I got stuck, got a response, made changes, and it's still wrong. Is there any other way to problem solve? This process leaves me days before I am able to move onto the next topic. Are there teaching assistants available? Can the program give hints other than "Bummer!"?

Any advice, especially from Treehouse would be greatly appreciated. I have moved onto other online programs that at least give hints as to the error. It's very discouraging as a beginner to reach a dead end without a way to remedy the problem.

Steven Parker
Steven Parker
231,269 Points

It's been a while, but according to this other post it looks like your suggestion about hints got implemented!

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! This probably isn't what you want to hear, but I recommend you keep trying. Trust me, I've done my share of Treehouse challenges. The "teaching assistants" you refer to are the videos and the documentation provided by the developers of the language you're studying. I might recommend a change in mindset. These courses undergo rigorous quality assurance before they are released, and some of that is done by fellow students. Go into the challenge knowing that it is possible to solve it with just the information provided in the video and the documentation.

These challenges are meant to be challenging. They are here to test your knowledge of what you've just learned. Much of programming is about taking the information you read in documentation and other sources and applying it to a specific problem.

As far as the Bummer!, I know it can be irritating when they aren't specific. When this happens, I try the code for the challenge either in a workspace or in my local environment. It's much easier then to say exactly what my code is doing and why it might not be passing. Sometimes my code doesn't do what I think it's doing, which is why the challenge is returning a Bummer!.

Having done quite a few challenges, I can give some generic tips:

  • If you're receiving a "Communication error", resist the temptation to click on any buttons other than the X to close the warning. Wait a few seconds and run "Check work" again. If you still get a "Communication error" message, you need to try this in your local environment. Chances are that you've inadvertently created an infinite loop.
  • If you receive a compiler error and it says it's on line 16 (for example), but you can't see anything at all wrong with line 16, start looking upwards in your code. Chances are the problem lies in one of the lines before line 16.
  • If the challenge says that it's not getting back the results it expects, run it on your local environment. See if the results match. In many cases, the results must match to the letter. This includes spelling, punctuation, capitalization, and even spacing!
  • Try not to do anything not explicitly asked for by the challenge. Even if functional outside the challenge, it can cause it to fail because the requirements are no longer being met.
  • If you believe you're overthinking it, you're likely correct.

While you might appreciate the hints of other sites (and others might too), I would point out that this platform is a bit unique in that they don't offer that. I believe this to be on purpose. The vast majority of these errors are things that you would experience in a real-life situation. If your variables don't match what is required by the specifications, then that would be the same in a code review at a job. An infinite loop in JavaScript run in your browser will cause the browser to crash. An infinite loop in Python will cause the system to eventually kill the process. Compiler errors are very really the compiler errors you will experience when programming on your own and there will be no "hint" button available then.

All of this is an effort to assure you get the best education and preparation for real world programming.

I'm not Treehouse staff. I'm a student just like you, but I hope some of this has been helpful! :sparkles:

Michael Hulet
Michael Hulet
47,913 Points

Also, to be clear, there's a button on each challenge to switch between an editor view and a console view. You'll almost always find a more detailed error message in the console view, because that's where programming languages output error messages in the real world, so Treehouse passes that along to show to you to assist in debugging