shareAI-lab / shareAI-lab/learn-claude-code

建议每节课只展示新代码,旧代码用 import 引用

Open
#349 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
77.2k
Forks
12.4k
Avg merge
2d 5h
Merged PRs (30d)
6

Description

现在每节课的 py 文件都把之前所有课的代码重新抄一遍,越往后文件越大。s01 才一百多行,到 s20 已经两千多行了。每次打开后面的课,一堆前面学过的代码堆在那里,要找本节课新加的内容得翻半天,看着头晕。建议把前面课的公共代码抽到一个文件里,后面开课直接用 import 引入就行,每节课的文件里只写这节课新教的那部分。这样文件短、重点清晰。

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the lesson Python files from s01 through s20, starting by comparing the duplicated code and identifying which parts are shared. Extract the earlier lesson code for import use, while keeping each lesson focused on its new material; done means the later files are shorter and still run correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.