Windowing System: Improvement Ideas
@SleeplessByte 已经在做这个了。
开始于 2022年2月7日。
评估
这个 Issue 还没有评估数据。
描述
After seeing a couple of solutions to "Windowing System" during mentoring, I think the exercise could need some changes to better achieve it's learning objectives.
- For
PositionandSize, the constructor and the method have the same implementation. I saw a solution that used the method in the constructor which is not a very typical example. - There is no reason to use the methods to update values so students often just set the property values directly.
- The calculation for the window resize and move is rather involved which does not add value for the actual learning objectives but it seems students spend quite some time finding creative solutions there, e.g.

Some ideas how to improve the exercise:
- Maybe we should expect some/all properties to be marked as private with the underscore to discourage the direct assignment. That might also make it easier to pick up unwanted code with the analyzer later. (Not sure how to best test in this case though. Either the test disrespects the underscore which is not a good example or the test needs to fall back on some user-implemented serialization function. But if that function is wrong all the tests will fail which is also annoying as everything else the user did could be correct.)
- The methods on
PositionandSizecould change the values by some amount instead of just setting a value. That would make them distinct from the constructor. (Probably only needed if we stick with "public properties".) - Simplify the window resize/move method e.g. by saying some lower bound is always respected
- 主要语言
- JavaScript
- 星标
- 654
- 派生
- 660
- 平均合并
- 5 小时 31 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
exercism/javascript 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
exercism/javascript#2865 ·
-
难度 3/5 1-2 天 新手友好度 45/100
exercism/javascript#2847 ·
-
难度 3/5 1-2 天 新手友好度 42/100
exercism/javascript#2832 ·
-
Building a training set of tags for javascript可能重新可做 @SleeplessByte 于 456 天前认领,目前没有进行中的 PR。 未关闭
exercism/javascript#2310 · 22 条评论 · 已指派 1 人 ·
-
pinned :pushpin:
难度 5/5 一周以上 新手友好度 5/100
exercism/javascript#2144 ·
查看 exercism/javascript 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
keyxmakerx/Chronicle#967 ·
维护者通常 1 天内回复
-
good first issue hacktoberfest
难度 1/5 1 小时以内 新手友好度 92/100
维护者通常 1 天内回复
-
external-issue to-triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
LearningCircuit/local-deep-research#7067 ·
维护者通常 1 天内回复