这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Conversation

@BillWagner
Copy link
Member

I've been thinking about how to have readers "test" their knowledge in more interesting ways as they finish a tutorial. This is a first proof of concept for having a challenge. My goal on this PR is to get comments so we can move forward as we're building content for the next wave.

Things I like:

  1. The general structure of the challenge: A reader must write some code that performs some work. Something like a test harness runs that code with a variety of inputs. The reader gets feedback on what's right, and what's not.
  2. The tuple for input / expected. I think that can get generalized. Caveat: Not sure of an elegant way to mark inputs that should generate exceptions.
  3. Giving hints. This could be generalized to go through successive pages and show more hints if someone is stuck (especially for larger challenges).

Things I don't like:

  1. The problem: It's really boring. I wanted to limit the scope to methods and capabilities that readers have seen in this tutorial. That's very limiting in such a beginner topic.
  2. ** Almost giving the answer.** Related to the first point. I gave a strong hint because the method hadn't been covered.

@BillWagner BillWagner force-pushed the create-challenge-proof-of-concept branch from aea1522 to 3fe0c53 Compare September 3, 2019 20:36
@BillWagner BillWagner force-pushed the create-challenge-proof-of-concept branch from 3fe0c53 to 1f4ce3f Compare September 27, 2019 13:18
@leot42
Copy link

leot42 commented Jan 21, 2020

Freecodecamp.org and rust-lang/rustlings does this and may be of interest. It looks like you're given a method/function signature that is tested against. Both sites have been very rewarding and provide something that videos and text books don't which is introducing you to a concept and testing your low resolution understanding to resolve the fuzzy bits that you may not have recognized as such. One component that seems to be missing is a workflow routine as a form of grooming and/or warm-up using example lessons of what's expected of developers who may or may not be of junior stature.

Base automatically changed from master to main March 12, 2021 01:02
@BillWagner BillWagner closed this Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants