Loading...
Loading...
Compare original and translation side by side
L<line>: <tag> <what>. <replacement>.<file>:L<line>: ...delete:stdlib:native:yagni:shrink:L<行号>: <标签> <内容描述>. <替代方案>.<文件名>:L<行号>: ...delete:stdlib:native:yagni:shrink:L12-38: stdlib: 27-line validator class. "@" in email, 1 line, real validation is the confirmation mail.L4: native: moment.js imported for one format call. Intl.DateTimeFormat, 0 deps.repo.py:L88: yagni: AbstractRepository with one implementation. Inline it until a second one exists.L52-71: delete: retry wrapper around an idempotent local call. Nothing replaces it.L30-44: shrink: manual loop builds dict. dict(zip(keys, values)), 1 line.L12-38: stdlib: 27行的验证器类。用邮箱中包含"@"来判断(1行代码),真正的验证靠确认邮件。L4: native: 仅为一次格式化调用引入moment.js。改用Intl.DateTimeFormat,无需依赖。repo.py:L88: yagni: 只有一个实现的AbstractRepository。在出现第二个实现前直接内联代码。L52-71: delete: 对幂等本地调用的重试包装。无需替代方案。L30-44: shrink: 手动循环构建字典。改用dict(zip(keys, values)),仅1行代码。net: -<N> lines possible.Lean already. Ship.net: -<N> lines possible.Lean already. Ship.assertassert