{"id":16555605,"url":"https://github.com/ethanlin-twer/master-refactor","last_synced_at":"2026-05-17T17:39:15.905Z","repository":{"id":93710508,"uuid":"86199284","full_name":"EthanLin-TWer/master-refactor","owner":"EthanLin-TWer","description":"这个仓库意在为重构提供刻意练习的材料","archived":false,"fork":false,"pushed_at":"2017-03-28T09:37:18.000Z","size":70,"stargazers_count":2,"open_issues_count":22,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T21:29:48.628Z","etag":null,"topics":["deliberate-practice","java","javascript","object-oriented","refactor"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EthanLin-TWer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-26T01:20:21.000Z","updated_at":"2023-11-24T13:56:34.000Z","dependencies_parsed_at":"2023-03-13T17:14:49.021Z","dependency_job_id":null,"html_url":"https://github.com/EthanLin-TWer/master-refactor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EthanLin-TWer/master-refactor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanLin-TWer%2Fmaster-refactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanLin-TWer%2Fmaster-refactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanLin-TWer%2Fmaster-refactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanLin-TWer%2Fmaster-refactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EthanLin-TWer","download_url":"https://codeload.github.com/EthanLin-TWer/master-refactor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EthanLin-TWer%2Fmaster-refactor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320257,"owners_count":24068527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deliberate-practice","java","javascript","object-oriented","refactor"],"created_at":"2024-10-11T19:54:21.016Z","updated_at":"2026-05-17T17:39:10.878Z","avatar_url":"https://github.com/EthanLin-TWer.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 重构的刻意练习 [![][Badges: Travis CI]][Links: Travis CI]\n\n重构领域已有[经典](https://book.douban.com/subject/4262627/)。问题是，如何有效学习、应用书中提及的技术。类似的困惑不少，通常在于两点：\n\n* 如何理解重构技术\n* 如何刻意练习重构技术\n\n前一者，书中本已点明，大🐻在再版序中也已表达清晰：仅仅掌握思想无用，其威力来源于日积月累的勤学苦练。**记住所有的\"坏味道\"**、**记住对应的重构手法**、**记住常见的重构步骤**，乃是如何理解、学习[《重构》](https://book.douban.com/subject/4262627/)一书的关键线索。\n\n后一者，正是本仓库意图所在：**提供细至味道和手法级别的刻意练习材料**。伍斌老师在[《驯服烂代码》](https://book.douban.com/subject/26208707/)一书中早已提到，程序员就像士兵，只有每天日积月累勤学苦练，等到了战场才可能打胜仗。一个没有练习、经常上战场的士兵是不可能打胜仗的，就像没有刻苦练习的运动员是不可能在比赛中获取成绩的。而重构的练习材料有不少，却少有细致到味道和手法级别的练习，这也使练习的时候无法更专注地针对单一知识点进行刻意练习。本仓库正希望提供这样的材料。\n\n这个仓库本意是搜集 Martin Fowler [《重构》](https://book.douban.com/subject/4262627/) 一书中提及的22种坏味道、68个重构手法的代码片段，以支持特定味道或手法的刻意练习。\n\n## 目录 Table of Contents\n\n* [安装与环境要求](#installation-environment-requisitions)\n* [如何开始](#getting-started)\n* [licenses](#licenses)\n\n## 安装与环境要求 Installation \u0026 Environment requisitions\n\n## 如何开始 Getting Started\n \n## LICENSES\n\nMIT。\n\n\n[Badges: Travis CI]: https://travis-ci.org/linesh-simplicity/master-refactor.svg?branch=master\n[Links: Travis CI]: https://travis-ci.org/linesh-simplicity/master-refactor","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanlin-twer%2Fmaster-refactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethanlin-twer%2Fmaster-refactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanlin-twer%2Fmaster-refactor/lists"}