Other, more striking callback issues are not mentioned
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
调研方向
检查 repository 现有的网页内容,以及 issue #26 中讨论的 callback 部分。简要涵盖所列出的 callback 控制、时序、异常和约定问题,然后确认页面反映了超出缩进范围的更广泛问题。
由索引模型根据 Issue 内容生成。
描述
Using callbacks comes with many issues and indentation with curly braces jungle is but one of them. By passing a callback you are passing the control over to a potentially buggy code with undesired behaviour.
The callback problems are:
- callback can be called once, twice, infinitely many times, or never, and you have no control over it
- callback can be called in synchronous or asynchronous fashion
- callbacks swallow exceptions and force developers to conventions
- callbacks make writing the curlybraced and indented code easy
I did not invent all of it myself, I learned a lot in YDKJS: https://github.com/getify/You-Dont-Know-JS/blob/master/async%20&%20performance/ch2.md
Yet the webpage only mentions the last one, from my point the least important one. Is it possible to at least mention that there are other, more serious problems, which actually turn this whole area into a real hell?
- 主要语言
- JavaScript
- 星标
- 855
- 派生
- 101
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
max-mapper/callback-hell 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 55/100
max-mapper/callback-hell#41 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
max-mapper/callback-hell#36 · 2 条评论 ·
-
License未关闭
难度 3/5 1-2 天 新手友好度 25/100
max-mapper/callback-hell#35 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 35/100
max-mapper/callback-hell#33 · 3 条评论 ·
-
async未关闭
难度 3/5 1-2 天 新手友好度 35/100
max-mapper/callback-hell#32 · 1 条评论 · 7 个 reaction ·
查看 max-mapper/callback-hell 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
Fei2411/DeepSeek-Bot#634 ·
-
beginner-friendly category:sarif community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
难度 1/5 1 小时以内 新手友好度 76/100
Berserk-hub150/skillhawk#244 · 1 条评论 ·
维护者通常 8 天内回复
-
enhancement javascript python
难度 2/5 1-3 小时 新手友好度 66/100
jlab-sensing/ENTS-backend#851 ·
维护者通常 2 天内回复
-
Pin GitHub Actions to Ubuntu 26.04可能已有人在做 @krusty93 今天认领。 未关闭chore infra:workflow-automation
难度 1/5 1 小时以内 新手友好度 91/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 86/100
guilhermerodz/input-otp#157 · 1 条评论 ·