adambard / adambard/learnxinyminutes-docs

Idea/FR: "Exercise Mode"

Đang mở
#4,169 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Markdown
Star
12.3k
Fork
3.7k
Merge trung bình
13 giờ 10 phút
Pull request đã merge (30 ngày)
6

Mô tả

_(Warning: This idea / feature request would be a lot of work. I'm aware this is a community-driven project. I expect this issue to be closed.)_

Idea: An "Exercise mode" toggle at the top of every learn page. When toggled on, it turns all non-comment code into textboxes. When you type into a textbox and hit enter, it gives you the diff between what you typed and what was there. Diffs can be naive and client side. No code evaluation or anything.

Motivation:

- A core idea in active recall & spaced repetition is that you should separate questions and answers. To learn something well, you want to first make a guess at the answer, and then see it.
- A user can approximate "exercise mode" by scrolling slowly, but sometimes comments explaining code behavior are after it or on the same line.
- If a user thinks they remember a language but aren't sure, they could scroll halfway down and try the exercises.

Curious what people think about how useful this would be to users and how difficult it would be to implement. My main thought is that extracting block-wise "is a comment" from the parsers might be hard. Perhaps this can be done by selecting ``s inside the `

` which don't have a comment's CSS class. Don't know if the class naming is consistent between languages or anything.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by examining the learn-page markup, especially the

/ elements and the comment CSS classes, then investigate how parsers expose comment boundaries across languages. Done means an Exercise Mode toggle turns non-comment code into textboxes and Enter shows a client-side diff without evaluating code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
css, html
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.