Comments (5)
Adding hint is something I've always considered, but I haven't thought of an ideal way to store hints.
Here are the requirements if we were to add this feature:
- Hint should be optional for a challenge (i.e. it's perfectly fine that a challenge does not have hint(s))
- Adding hint should be easy and add as little extra work as possible for contributors
In terms of implementation, I'm a bit hesitant to put it in question.py
. Having to write ## End of your code ##
is already very tedious (I can't remember it and have to copy&paste each time adding a new challenge), and ## HINT start ##
makes things worse...
At this point I'm more leaning towards putting hints in a separate file. Maybe we can store it in a markdown hints.md
so that it's easier to add (than write html). So it would look something like
# hints.md
HINT: Check out [Callable](https://docs.python.org/3/library/typing.html#annotating-callable-objects).
from python-type-challenges.
Having to put
## End of your code ##
is already very tedious (I can't remember it and have to copy each time adding a new challenge), and## HINT start ##
makes things worse...
lol, yes, that would definitely make it harder to add new questions and make question.py a little too noisy. If we don't want to stick to using magic comments in question.py
, introducing a new markdown file for storing hint messages would be better.
I would be happy to implement this feature.
from python-type-challenges.
Awesome, that would be of great help!
Another consideration is how to show hints on a challenge page. I think the only requirement is to not show it directly, maybe with a popup or something similar. I'll leave this to you to decide :)
from python-type-challenges.
Implemented in #71.
Screenshots:
from python-type-challenges.
Closed, since most challenges have hints now. More will be added as time goes.
from python-type-challenges.
Related Issues (20)
- On mobile devices, click elsewhere on the screen should fold the challenge list
- [Web] Use HTMX to random page. HOT 3
- [Formatter] Replace `black` HOT 1
- [Bug] Old CodeMirrors are not remove HOT 1
- [Docs] Add random challenge entrance to README
- Return type for extreme concatenate HOT 3
- Errors in running "Challenge - concatenate" HOT 2
- Add `from typing import *` to boilerplate HOT 2
- Add newline in `typealias` challenge HOT 1
- Allow custom challenge order HOT 4
- Record and show passed challenges
- The ellipsis in the function parameters of challenge intermediate/literalstring causes challenge failed HOT 3
- extreme-concatenate not working? (maybe outdated pyright) HOT 3
- much simpler solution to `extreme-self-casting` HOT 4
- [Bug] Pass challenges with `raise` HOT 6
- Too easy to pass `extreme-variance` HOT 5
- Enable UTF-8 mode for python (PEP 686) HOT 3
- [CI] Fail when pre-commit run
- [Web] 500 Internal Server Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-type-challenges.