没有合适的资源?快使用搜索试试~ 我知道了~
refactoring-examples
共487个文件
md:160个
php:68个
ts:68个
需积分: 5 0 下载量 28 浏览量
2021-05-28
14:53:41
上传
评论
收藏 825KB ZIP 举报
温馨提示
重构实例 该存储库是项目的一部分。 它包含不同编程语言的简单和交互式重构示例。 贡献者指南 无论是拼写错误还是全新示例,我们都将为您提供帮助。 只需,做点零钱并提交。 以下是优先级列表: 编程语言中的简单示例,该示例尚未在存储库中提供。 这些只需要最少的劳动,但会产生很多价值。 您只需复制Java文件夹并将其全部翻译成您选择的语言即可。 互动示例。 这些需要更多的工作。 请参阅“交互式”文件夹中的自述文件。 最好的开始方法是一个接一个地介绍Java方案并将其翻译成您的语言。 您可以通过将脚本导入到此编辑器中来对其进行调试: : (您将需要从此处导出脚本并执行常规的拉取请求)。 执照 本作品已根据知识共享署名-非商业性-无衍生品4.0国际许可获得许可。
资源推荐
资源详情
资源评论
收起资源包目录
refactoring-examples (487个子文件)
move-method_isolate-switch_after.cs 597B
move-method_isolate-switch_before.cs 538B
extract-method_isolate-switch_after.cs 538B
replace-conditional-with-polymorphism_after.cs 488B
replace-method-with-method-object_after.cs 440B
extract-method_isolate-switch_before.cs 419B
replace-conditional-with-polymorphism_before.cs 387B
introduce-null-object_after.cs 385B
replace-nested-conditional-with-guard-clauses_before.cs 360B
extract-variable_before2.cs 327B
substitute-algorithm_before.cs 312B
extract-class_after.cs 283B
extract-variable_after.cs 279B
substitute-algorithm_after.cs 268B
extract-variable_after2.cs 260B
extract-method_decompose-loop_before.cs 248B
extract-class_before.cs 221B
extract-method_decompose-loop_after.cs 219B
replace-nested-conditional-with-guard-clauses_after.cs 218B
consolidate-conditional-expression_before.cs 210B
rename-mehod_before.cs 207B
introduce-assertion_after.cs 207B
self-encapsulate-field_after.cs 201B
introduce-assertion_before.cs 199B
replace-error-code-with-exception_after.cs 198B
replace-parameter-with-explicit-methods_before.cs 197B
introduce-foreign-method_after.cs 197B
replace-temp-with-query_after.cs 196B
inline-method_before.cs 193B
extract-variable_before.cs 192B
extract-method_after.cs 191B
replace-parameter-with-method-call_before.cs 189B
replace-method-with-method-object_before.cs 188B
replace-temp-with-query_before.cs 181B
rename-mehod_after.cs 170B
replace-constructor-with-factory-method_after.cs 170B
pull-up-constructor-body_before.cs 169B
extract-method_before.cs 165B
replace-exception-with-test_before.cs 156B
decompose-conditional_before.cs 150B
replace-magic-number-with-symbolic-constant_after.cs 149B
pull-up-constructor-body_after.cs 144B
split-temporary-variable_after.cs 143B
replace-exception-with-test_after.cs 138B
consolidate-conditional-expression_after.cs 132B
replace-error-code-with-exception_before.cs 131B
remove-assignments-to-parameters_after.cs 129B
encapsulate-field_after.cs 121B
self-encapsulate-field_before.cs 116B
preserve-whole-object_before.cs 116B
introduce-foreign-method_before.cs 113B
split-temporary-variable_before.cs 108B
inline-method_after.cs 107B
consolidate-duplicate-conditional-fragments_before.cs 103B
decompose-conditional_after.cs 103B
remove-assignments-to-parameters_before.cs 103B
inline-temp_before.cs 100B
introduce-null-object_before.cs 95B
replace-constructor-with-factory-method_before.cs 94B
consolidate-duplicate-conditional-fragments_after.cs 89B
replace-parameter-with-explicit-methods_after.cs 87B
replace-magic-number-with-symbolic-constant_before.cs 86B
replace-parameter-with-method-call_after.cs 85B
replace-array-with-object_after.cs 81B
inline-temp_after.cs 68B
replace-array-with-object_before.cs 66B
preserve-whole-object_after.cs 50B
encapsulate-field_before.cs 39B
.gitattributes 1KB
.gitignore 0B
move-method_isolate-switch_after.java 589B
move-method_isolate-switch_before.java 521B
extract-method_isolate-switch_after.java 521B
replace-conditional-with-polymorphism_after.java 437B
replace-method-with-method-object_after.java 415B
extract-method_isolate-switch_before.java 404B
introduce-null-object_after.java 361B
replace-conditional-with-polymorphism_before.java 354B
replace-nested-conditional-with-guard-clauses_before.java 324B
extract-variable_before2.java 324B
extract-variable_after.java 283B
substitute-algorithm_before.java 283B
extract-variable_after2.java 265B
substitute-algorithm_after.java 246B
extract-method_decompose-loop_before.java 245B
introduce-foreign-method_after.java 221B
rename-mehod_before.java 213B
extract-class_after.java 210B
extract-method_decompose-loop_after.java 210B
replace-nested-conditional-with-guard-clauses_after.java 208B
introduce-assertion_after.java 206B
replace-parameter-with-explicit-methods_before.java 206B
extract-method_after.java 202B
consolidate-conditional-expression_before.java 200B
extract-variable_before.java 199B
self-encapsulate-field_after.java 198B
introduce-assertion_before.java 198B
replace-parameter-with-method-call_before.java 189B
inline-method_before.java 189B
replace-temp-with-query_after.java 188B
共 487 条
- 1
- 2
- 3
- 4
- 5
资源评论
绘画窝
- 粉丝: 21
- 资源: 4715
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功