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 trialFrankie Lamar
11,120 PointsHow to challenges work behind the scenes?
I want to know how the code challenges work behind the scenes. I want to build a site similar to hackerrank or codewars. Basically want to create a site where users can go to practice nothing, but code challenges. I would like to know: How does treehouse embed a text editor in the webpage? How does treehouse check the code entered against the correct answer? How does treehouse display the stacktrace for incorrect answers?
1 Answer
Steven Parker
231,007 PointsTake a look at this blog post.
It describes how the challenge process was created 5 years ago.
The mechanism involves a surprisingly large number of diverse technologies, which I suppose partly explains some of the bizarre error scenarios that occasionally happen to people when using the challenges.