René's URL Explorer Experiment


Title: GitHub - notes-folder/refactoring: 笔记:《重构:改善既有代码的设计(第二版)》

Open Graph Title: GitHub - notes-folder/refactoring: 笔记:《重构:改善既有代码的设计(第二版)》

X Title: GitHub - notes-folder/refactoring: 笔记:《重构:改善既有代码的设计(第二版)》

Description: 笔记:《重构:改善既有代码的设计(第二版)》. Contribute to notes-folder/refactoring development by creating an account on GitHub.

Open Graph Description: 笔记:《重构:改善既有代码的设计(第二版)》. Contribute to notes-folder/refactoring development by creating an account on GitHub.

X Description: 笔记:《重构:改善既有代码的设计(第二版)》. Contribute to notes-folder/refactoring development by creating an account on GitHub.

Opengraph URL: https://github.com/notes-folder/refactoring

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:3d8cc836-cb4e-b9a9-54e5-334541e4a8b3
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idE85A:BF1F6:61B131:7B855B:69900030
html-safe-nonceacfa2bd171f43424297dc778e5f1af04f7fcfbc1bc833616a5a307a7a02ae0b6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODVBOkJGMUY2OjYxQjEzMTo3Qjg1NUI6Njk5MDAwMzAiLCJ2aXNpdG9yX2lkIjoiMTIyNzQzNzQ0MDkxMTgwMjQxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5d62252b8827db2d15171b3c20ea578f5bb55365665abb9997f804f5a21f32ae
hovercard-subject-tagrepository:392231908
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/notes-folder/refactoring
twitter:imagehttps://opengraph.githubassets.com/698b9bdf44f91af9465d4e86bf7a9aba6ae50c92f95cc7445b610e11b4ed1c9e/notes-folder/refactoring
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/698b9bdf44f91af9465d4e86bf7a9aba6ae50c92f95cc7445b610e11b4ed1c9e/notes-folder/refactoring
og:image:alt笔记:《重构:改善既有代码的设计(第二版)》. Contribute to notes-folder/refactoring development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/notes-folder/refactoring git https://github.com/notes-folder/refactoring.git
octolytics-dimension-user_id154581840
octolytics-dimension-user_loginnotes-folder
octolytics-dimension-repository_id392231908
octolytics-dimension-repository_nwonotes-folder/refactoring
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id392231908
octolytics-dimension-repository_network_root_nwonotes-folder/refactoring
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/notes-folder/refactoring#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnotes-folder%2Frefactoring
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnotes-folder%2Frefactoring
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=notes-folder%2Frefactoring
Reloadhttps://patch-diff.githubusercontent.com/notes-folder/refactoring
Reloadhttps://patch-diff.githubusercontent.com/notes-folder/refactoring
Reloadhttps://patch-diff.githubusercontent.com/notes-folder/refactoring
notes-folder https://patch-diff.githubusercontent.com/notes-folder
refactoringhttps://patch-diff.githubusercontent.com/notes-folder/refactoring
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fnotes-folder%2Frefactoring
Fork 1 https://patch-diff.githubusercontent.com/login?return_to=%2Fnotes-folder%2Frefactoring
Star 2 https://patch-diff.githubusercontent.com/login?return_to=%2Fnotes-folder%2Frefactoring
2 stars https://patch-diff.githubusercontent.com/notes-folder/refactoring/stargazers
1 fork https://patch-diff.githubusercontent.com/notes-folder/refactoring/forks
Branches https://patch-diff.githubusercontent.com/notes-folder/refactoring/branches
Tags https://patch-diff.githubusercontent.com/notes-folder/refactoring/tags
Activity https://patch-diff.githubusercontent.com/notes-folder/refactoring/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fnotes-folder%2Frefactoring
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fnotes-folder%2Frefactoring
Code https://patch-diff.githubusercontent.com/notes-folder/refactoring
Issues 0 https://patch-diff.githubusercontent.com/notes-folder/refactoring/issues
Pull requests 0 https://patch-diff.githubusercontent.com/notes-folder/refactoring/pulls
Actions https://patch-diff.githubusercontent.com/notes-folder/refactoring/actions
Projects 0 https://patch-diff.githubusercontent.com/notes-folder/refactoring/projects
Security 0 https://patch-diff.githubusercontent.com/notes-folder/refactoring/security
Insights https://patch-diff.githubusercontent.com/notes-folder/refactoring/pulse
Code https://patch-diff.githubusercontent.com/notes-folder/refactoring
Issues https://patch-diff.githubusercontent.com/notes-folder/refactoring/issues
Pull requests https://patch-diff.githubusercontent.com/notes-folder/refactoring/pulls
Actions https://patch-diff.githubusercontent.com/notes-folder/refactoring/actions
Projects https://patch-diff.githubusercontent.com/notes-folder/refactoring/projects
Security https://patch-diff.githubusercontent.com/notes-folder/refactoring/security
Insights https://patch-diff.githubusercontent.com/notes-folder/refactoring/pulse
Brancheshttps://patch-diff.githubusercontent.com/notes-folder/refactoring/branches
Tagshttps://patch-diff.githubusercontent.com/notes-folder/refactoring/tags
https://patch-diff.githubusercontent.com/notes-folder/refactoring/branches
https://patch-diff.githubusercontent.com/notes-folder/refactoring/tags
8 Commitshttps://patch-diff.githubusercontent.com/notes-folder/refactoring/commits/main/
https://patch-diff.githubusercontent.com/notes-folder/refactoring/commits/main/
README.mdhttps://patch-diff.githubusercontent.com/notes-folder/refactoring/blob/main/README.md
README.mdhttps://patch-diff.githubusercontent.com/notes-folder/refactoring/blob/main/README.md
重构改善既有代码的设计第2版.epubhttps://patch-diff.githubusercontent.com/notes-folder/refactoring/blob/main/%E9%87%8D%E6%9E%84%E6%94%B9%E5%96%84%E6%97%A2%E6%9C%89%E4%BB%A3%E7%A0%81%E7%9A%84%E8%AE%BE%E8%AE%A1%E7%AC%AC2%E7%89%88.epub
重构改善既有代码的设计第2版.epubhttps://patch-diff.githubusercontent.com/notes-folder/refactoring/blob/main/%E9%87%8D%E6%9E%84%E6%94%B9%E5%96%84%E6%97%A2%E6%9C%89%E4%BB%A3%E7%A0%81%E7%9A%84%E8%AE%BE%E8%AE%A1%E7%AC%AC2%E7%89%88.epub
READMEhttps://patch-diff.githubusercontent.com/notes-folder/refactoring
https://patch-diff.githubusercontent.com/notes-folder/refactoring#笔记重构改善既有代码的设计-第二版
https://patch-diff.githubusercontent.com/notes-folder/refactoring#目录
代码的坏味道 Bad Smells In Codehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A3%E7%A0%81%E7%9A%84%E5%9D%8F%E5%91%B3%E9%81%93-bad-smells-in-code
神秘命名 Mysterious Namehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%A5%9E%E7%A7%98%E5%91%BD%E5%90%8D-mysterious-name
重复代码 Duplicated Codehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E9%87%8D%E5%A4%8D%E4%BB%A3%E7%A0%81-duplicated-code
过长函数 Long Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E8%BF%87%E9%95%BF%E5%87%BD%E6%95%B0-long-function
过长参数列表 Long Parameter Listhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E8%BF%87%E9%95%BF%E5%8F%82%E6%95%B0%E5%88%97%E8%A1%A8-long-parameter-list
全局数据 Global Datahttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%85%A8%E5%B1%80%E6%95%B0%E6%8D%AE-global-data
可变数据 Mutable Datahttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%8F%AF%E5%8F%98%E6%95%B0%E6%8D%AE-mutable-data
发散式变化 Divergent Changehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%8F%91%E6%95%A3%E5%BC%8F%E5%8F%98%E5%8C%96-divergent-change
散弹式修改 Shotgun Surgeryhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%95%A3%E5%BC%B9%E5%BC%8F%E4%BF%AE%E6%94%B9-shotgun-surgery
依恋情结 Feature Envyhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BE%9D%E6%81%8B%E6%83%85%E7%BB%93-feature-envy
数据泥团 Data Clumpshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%95%B0%E6%8D%AE%E6%B3%A5%E5%9B%A2-data-clumps
基本类型偏执 Primitive Obsessionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%9F%BA%E6%9C%AC%E7%B1%BB%E5%9E%8B%E5%81%8F%E6%89%A7-primitive-obsession
重复的switch Repeated Switcheshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E9%87%8D%E5%A4%8D%E7%9A%84switch-repeated-switches
循环语句 Loopshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%BE%AA%E7%8E%AF%E8%AF%AD%E5%8F%A5-loops
冗赘的元素 Lazy Elementhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%86%97%E8%B5%98%E7%9A%84%E5%85%83%E7%B4%A0-lazy-element
夸夸奇谈通用型 Speculative Generalityhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%A4%B8%E5%A4%B8%E5%A5%87%E8%B0%88%E9%80%9A%E7%94%A8%E5%9E%8B-speculative-generality
临时字段 Temporary Fieldhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%B8%B4%E6%97%B6%E5%AD%97%E6%AE%B5-temporary-field
过长的消息链 Message Chainshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E8%BF%87%E9%95%BF%E7%9A%84%E6%B6%88%E6%81%AF%E9%93%BE-message-chains
中间人 Middle Manhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%B8%AD%E9%97%B4%E4%BA%BA-middle-man
内幕交易 Insider Tradinghttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%86%85%E5%B9%95%E4%BA%A4%E6%98%93-insider-trading
过大的类 Large classhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E8%BF%87%E5%A4%A7%E7%9A%84%E7%B1%BB-large-class
异曲同工的类 Alternative Classes with Different Interfaceshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%BC%82%E6%9B%B2%E5%90%8C%E5%B7%A5%E7%9A%84%E7%B1%BB-alternative-classes-with-different-interfaces
纯数据类 Data classhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%BA%AF%E6%95%B0%E6%8D%AE%E7%B1%BB-data-class
被拒绝的遗赠 Refused Bequesthttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E8%A2%AB%E6%8B%92%E7%BB%9D%E7%9A%84%E9%81%97%E8%B5%A0-refused-bequest
注释 Commenthttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%B3%A8%E9%87%8A-comment
最有用的一组重构 (Most Useful Set Of Refactoring)https://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%9C%80%E6%9C%89%E7%94%A8%E7%9A%84%E4%B8%80%E7%BB%84%E9%87%8D%E6%9E%84-most-useful-set-of-refactoring
提炼函数 Extract Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8F%90%E7%82%BC%E5%87%BD%E6%95%B0-extract-function
内联函数 Inline Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%86%85%E8%81%94%E5%87%BD%E6%95%B0-inline-function
提炼变量 Extract Variablehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8F%90%E7%82%BC%E5%8F%98%E9%87%8F-extract-variable
内联变量 Inline Variablehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%86%85%E8%81%94%E5%8F%98%E9%87%8F-inline-variable
改变函数声明 Change Function Declarationhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%94%B9%E5%8F%98%E5%87%BD%E6%95%B0%E5%A3%B0%E6%98%8E-change-function-declaration
封装变量 Encapsulate Variablehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%B0%81%E8%A3%85%E5%8F%98%E9%87%8F-encapsulate-variable
变量改名 Rename Variablehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%8F%98%E9%87%8F%E6%94%B9%E5%90%8D-rename-variable
引入参数对象 Introduce Parameter Objecthttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%BC%95%E5%85%A5%E5%8F%82%E6%95%B0%E5%AF%B9%E8%B1%A1-introduce-parameter-object
函数组合成类 Combine Functions Into Classhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%87%BD%E6%95%B0%E7%BB%84%E5%90%88%E6%88%90%E7%B1%BB-combine-functions-into-class
函数组合成变换 Combine Functions Into Transformhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%87%BD%E6%95%B0%E7%BB%84%E5%90%88%E6%88%90%E5%8F%98%E6%8D%A2-combine-functions-into-transform
拆分阶段 Split Phasehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8B%86%E5%88%86%E9%98%B6%E6%AE%B5-split-phase
封装 Encapsulatehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%B0%81%E8%A3%85-encapsulate
封装记录 Encapsulate Recordhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%B0%81%E8%A3%85%E8%AE%B0%E5%BD%95-encapsulate-record
封装集合 Encapsulate Collectionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%B0%81%E8%A3%85%E9%9B%86%E5%90%88-encapsulate-collection
以对象取代基本类型 Replace Primitive with Objecthttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%AF%B9%E8%B1%A1%E5%8F%96%E4%BB%A3%E5%9F%BA%E6%9C%AC%E7%B1%BB%E5%9E%8B-replace-primitive-with-object
以查询取代临时变量 Replace Temp with Queryhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E6%9F%A5%E8%AF%A2%E5%8F%96%E4%BB%A3%E4%B8%B4%E6%97%B6%E5%8F%98%E9%87%8F-replace-temp-with-query
提炼类 Extract Classhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8F%90%E7%82%BC%E7%B1%BB-extract-class
内联类 Inline Classhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%86%85%E8%81%94%E7%B1%BB-inline-class
隐藏委托关系 Hide Delegatehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E9%9A%90%E8%97%8F%E5%A7%94%E6%89%98%E5%85%B3%E7%B3%BB-hide-delegate
移除中间人 Remove Middle Manhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%A7%BB%E9%99%A4%E4%B8%AD%E9%97%B4%E4%BA%BA-remove-middle-man
替换算法 Substitute Algorithmhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%9B%BF%E6%8D%A2%E7%AE%97%E6%B3%95-substitute-algorithm
搬移特性 Moving Featureshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%90%AC%E8%BF%81%E7%89%B9%E6%80%A7-moving-features
搬移函数 Move Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%90%AC%E7%A7%BB%E5%87%BD%E6%95%B0-move-function
搬移字段 Move Fieldhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%90%AC%E7%A7%BB%E5%AD%97%E6%AE%B5-move-field
搬移语句到函数 Move Statements into Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%90%AC%E7%A7%BB%E8%AF%AD%E5%8F%A5%E5%88%B0%E5%87%BD%E6%95%B0-move-statements-into-function
搬移语句到调用者 Move Statements To Callershttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%90%AC%E7%A7%BB%E8%AF%AD%E5%8F%A5%E5%88%B0%E8%B0%83%E7%94%A8%E8%80%85-move-statements-to-callers
以函数调用取代内联代码 Replace Inline Code with Function Callhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%87%BD%E6%95%B0%E8%B0%83%E7%94%A8%E5%8F%96%E4%BB%A3%E5%86%85%E8%81%94%E4%BB%A3%E7%A0%81-replace-inline-code-with-function-call
移动语句 Slide Statementshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%A7%BB%E5%8A%A8%E8%AF%AD%E5%8F%A5-slide-statements
拆分循环 Split Loophttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8B%86%E5%88%86%E5%BE%AA%E7%8E%AF-split-loop
以管道取代循环 Replace Loop with Pipelinehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E7%AE%A1%E9%81%93%E5%8F%96%E4%BB%A3%E5%BE%AA%E7%8E%AF-replace-loop-with-pipeline
移除死代码 Remove Dead Codehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%A7%BB%E9%99%A4%E6%AD%BB%E4%BB%A3%E7%A0%81-remove-dead-code
重新组织数据 Organizing Datahttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E9%87%8D%E6%96%B0%E7%BB%84%E7%BB%87%E6%95%B0%E6%8D%AE-organizing-data
拆分变量 Split Variablehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8B%86%E5%88%86%E5%8F%98%E9%87%8F-split-variable
字段改名 Rename Fieldhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%AD%97%E6%AE%B5%E6%94%B9%E5%90%8D-rename-field
以查询取代派生变量 Replace Derived Variable With Queryhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E6%9F%A5%E8%AF%A2%E5%8F%96%E4%BB%A3%E6%B4%BE%E7%94%9F%E5%8F%98%E9%87%8F-replace-derived-variable-with-query
将引用对象改为值对象 Change Reference To Valuehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%B0%86%E5%BC%95%E7%94%A8%E5%AF%B9%E8%B1%A1%E6%94%B9%E4%B8%BA%E5%80%BC%E5%AF%B9%E8%B1%A1-change-reference-to-value
将值对象改为引用对象 Change Value To Referencehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%B0%86%E5%80%BC%E5%AF%B9%E8%B1%A1%E6%94%B9%E4%B8%BA%E5%BC%95%E7%94%A8%E5%AF%B9%E8%B1%A1-change-value-to-reference
简化条件逻辑 Simplifying Conditional Logichttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%AE%80%E5%8C%96%E6%9D%A1%E4%BB%B6%E9%80%BB%E8%BE%91-simplifying-conditional-logic
分解条件表达式 Decompose Conditionalhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%88%86%E8%A7%A3%E6%9D%A1%E4%BB%B6%E8%A1%A8%E8%BE%BE%E5%BC%8F-decompose-conditional
合并条件表达式 Consolidate Conditional Expressionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%90%88%E5%B9%B6%E6%9D%A1%E4%BB%B6%E8%A1%A8%E8%BE%BE%E5%BC%8F-consolidate-conditional-expression
以卫语句取代件套表达式 Replace Nested Conditional with Guard Clauseshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%8D%AB%E8%AF%AD%E5%8F%A5%E5%8F%96%E4%BB%A3%E4%BB%B6%E5%A5%97%E8%A1%A8%E8%BE%BE%E5%BC%8F-replace-nested-conditional-with-guard-clauses
以多态取代条件表达式 Replace Conditional with Polymorphismhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%A4%9A%E6%80%81%E5%8F%96%E4%BB%A3%E6%9D%A1%E4%BB%B6%E8%A1%A8%E8%BE%BE%E5%BC%8F-replace-conditional-with-polymorphism
引入特例 Introduce Special Casehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%BC%95%E5%85%A5%E7%89%B9%E4%BE%8B-introduce-special-case
引入断言 Introduce Assertionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%BC%95%E5%85%A5%E6%96%AD%E8%A8%80-introduce-assertion
重构API Refactoring APIShttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E9%87%8D%E6%9E%84API-refactoring-apis
将查询函数和修改函数分离 Separate Query from Modifierhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%B0%86%E6%9F%A5%E8%AF%A2%E5%87%BD%E6%95%B0%E5%92%8C%E4%BF%AE%E6%94%B9%E5%87%BD%E6%95%B0%E5%88%86%E7%A6%BB-separate-query-from-modifier
函数参数化 Parameterize Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%87%BD%E6%95%B0%E5%8F%82%E6%95%B0%E5%8C%96-parameterize-function
移除标记参数 Remove Flag Argumenthttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%A7%BB%E9%99%A4%E6%A0%87%E8%AE%B0%E5%8F%82%E6%95%B0-remove-flag-argument
保持完整对象 Preserve Whole Objecthttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BF%9D%E6%8C%81%E5%AE%8C%E6%95%B4%E5%AF%B9%E8%B1%A1-preserve-whole-object
以查询取代参数 Replace Parameter with Queryhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E6%9F%A5%E8%AF%A2%E5%8F%96%E4%BB%A3%E5%8F%82%E6%95%B0-replace-parameter-with-query
以参数取代查询 Replace Query with Parameterhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%8F%82%E6%95%B0%E5%8F%96%E4%BB%A3%E6%9F%A5%E8%AF%A2-replace-query-with-parameter
移除设值方法 Remove Setting Methodhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%A7%BB%E9%99%A4%E8%AE%BE%E5%80%BC%E6%96%B9%E6%B3%95-remove-setting-method
以工厂函数取代构造方法 Replace Constructor with Factory Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%B7%A5%E5%8E%82%E5%87%BD%E6%95%B0%E5%8F%96%E4%BB%A3%E6%9E%84%E9%80%A0%E6%96%B9%E6%B3%95-replace-constructor-with-factory-function
以命令取代函数 Replace Function with Commandhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%91%BD%E4%BB%A4%E5%8F%96%E4%BB%A3%E5%87%BD%E6%95%B0-replace-function-with-command
以函数取代命令 Replace Command with Functionhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%87%BD%E6%95%B0%E5%8F%96%E4%BB%A3%E5%91%BD%E4%BB%A4-replace-command-with-function
处理继承关系 Dealing With Inheritancehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%A4%84%E7%90%86%E7%BB%A7%E6%89%BF%E5%85%B3%E7%B3%BB-dealing-with-inheritance
方法上移 Pull Up Methodhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%96%B9%E6%B3%95%E4%B8%8A%E7%A7%BB-pull-up-method
字段上移 Pull Up Fieldhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%AD%97%E6%AE%B5%E4%B8%8A%E7%A7%BB-pull-up-field
构造方法本体上移 Pull Up Constructor Bodyhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%9E%84%E9%80%A0%E6%96%B9%E6%B3%95%E6%9C%AC%E4%BD%93%E4%B8%8A%E7%A7%BB-pull-up-constructor-body
方法下移 Push Down Methodhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%96%B9%E6%B3%95%E4%B8%8B%E7%A7%BB-push-down-method
字段下移 Push Down Fieldhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E5%AD%97%E6%AE%B5%E4%B8%8B%E7%A7%BB-push-down-field
以子类取代类型码 Replace Type Code with Subclasseshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%AD%90%E7%B1%BB%E5%8F%96%E4%BB%A3%E7%B1%BB%E5%9E%8B%E7%A0%81-replace-type-code-with-subclasses
移除子类 Remove Subclasshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E7%A7%BB%E9%99%A4%E5%AD%90%E7%B1%BB-remove-subclass
提炼超类 Extract Superclasshttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8F%90%E7%82%BC%E8%B6%85%E7%B1%BB-extract-superclass
折叠继承关系 Collapse Hierarchyhttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E6%8A%98%E5%8F%A0%E7%BB%A7%E6%89%BF%E5%85%B3%E7%B3%BB-collapse-hierarchy
以委托取代子类 Replace Subclass with Delegatehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%A7%94%E6%89%98%E5%8F%96%E4%BB%A3%E5%AD%90%E7%B1%BB-replace-subclass-with-delegate
以委托取代超类 Replace Superclass with Delegatehttps://patch-diff.githubusercontent.com/notes-folder/refactoring#%E4%BB%A5%E5%A7%94%E6%89%98%E5%8F%96%E4%BB%A3%E8%B6%85%E7%B1%BB-replace-superclass-with-delegate
https://patch-diff.githubusercontent.com/notes-folder/refactoring#代码的坏味道-bad-smells-in-code
https://patch-diff.githubusercontent.com/notes-folder/refactoring#神秘命名-mysterious-name
https://patch-diff.githubusercontent.com/notes-folder/refactoring#重复代码-duplicated-code
https://patch-diff.githubusercontent.com/notes-folder/refactoring#过长函数-long-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#过长参数列表-long-parameter-list
https://patch-diff.githubusercontent.com/notes-folder/refactoring#全局数据-global-data
https://patch-diff.githubusercontent.com/notes-folder/refactoring#可变数据-mutable-data
https://patch-diff.githubusercontent.com/notes-folder/refactoring#发散式变化-divergent-change
https://patch-diff.githubusercontent.com/notes-folder/refactoring#散弹式修改-shotgun-surgery
https://patch-diff.githubusercontent.com/notes-folder/refactoring#依恋情结-feature-envy
https://patch-diff.githubusercontent.com/notes-folder/refactoring#数据泥团-data-clumps
https://patch-diff.githubusercontent.com/notes-folder/refactoring#基本类型偏执-primitive-obsession
https://patch-diff.githubusercontent.com/notes-folder/refactoring#重复的switch-repeated-switches
https://patch-diff.githubusercontent.com/notes-folder/refactoring#循环语句-loops
https://patch-diff.githubusercontent.com/notes-folder/refactoring#冗赘的元素-lazy-element
https://patch-diff.githubusercontent.com/notes-folder/refactoring#夸夸奇谈通用型-speculative-generality
https://patch-diff.githubusercontent.com/notes-folder/refactoring#临时字段-temporary-field
https://patch-diff.githubusercontent.com/notes-folder/refactoring#过长的消息链-message-chains
https://patch-diff.githubusercontent.com/notes-folder/refactoring#中间人-middle-man
https://patch-diff.githubusercontent.com/notes-folder/refactoring#内幕交易-insider-trading
https://patch-diff.githubusercontent.com/notes-folder/refactoring#过大的类-large-class
https://patch-diff.githubusercontent.com/notes-folder/refactoring#异曲同工的类-alternative-classes-with-different-interfaces
https://patch-diff.githubusercontent.com/notes-folder/refactoring#纯数据类-data-class
https://patch-diff.githubusercontent.com/notes-folder/refactoring#被拒绝的遗赠-refused-bequest
https://patch-diff.githubusercontent.com/notes-folder/refactoring#注释-comment
https://patch-diff.githubusercontent.com/notes-folder/refactoring#最有用的一组重构-most-useful-set-of-refactoring
https://patch-diff.githubusercontent.com/notes-folder/refactoring#提炼函数-extract-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#内联函数-inline-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#提炼变量-extract-variable
https://patch-diff.githubusercontent.com/notes-folder/refactoring#内联变量-inline-variable
https://patch-diff.githubusercontent.com/notes-folder/refactoring#改变函数声明-change-function-declaration
https://patch-diff.githubusercontent.com/notes-folder/refactoring#封装变量-encapsulate-variable
https://patch-diff.githubusercontent.com/notes-folder/refactoring#变量改名-rename-variable
https://patch-diff.githubusercontent.com/notes-folder/refactoring#引入参数对象-introduce-parameter-object
https://patch-diff.githubusercontent.com/notes-folder/refactoring#函数组合成类-combine-functions-into-class
https://patch-diff.githubusercontent.com/notes-folder/refactoring#函数组合成变换-combine-functions-into-transform
https://patch-diff.githubusercontent.com/notes-folder/refactoring#拆分阶段-split-phase
https://patch-diff.githubusercontent.com/notes-folder/refactoring#封装-encapsulate
https://patch-diff.githubusercontent.com/notes-folder/refactoring#封装记录-encapsulate-record
https://patch-diff.githubusercontent.com/notes-folder/refactoring#封装集合-encapsulate-collection
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以对象取代基本类型-replace-primitive-with-object
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以查询取代临时变量-replace-temp-with-query
https://patch-diff.githubusercontent.com/notes-folder/refactoring#提炼类-extract-class
https://patch-diff.githubusercontent.com/notes-folder/refactoring#内联类-inline-class
https://patch-diff.githubusercontent.com/notes-folder/refactoring#隐藏委托关系-hide-delegate
https://patch-diff.githubusercontent.com/notes-folder/refactoring#移除中间人-remove-middle-man
https://patch-diff.githubusercontent.com/notes-folder/refactoring#替换算法-substitute-algorithm
https://patch-diff.githubusercontent.com/notes-folder/refactoring#搬迁特性-moving-features
https://patch-diff.githubusercontent.com/notes-folder/refactoring#搬移函数-move-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#搬移字段-move-field
https://patch-diff.githubusercontent.com/notes-folder/refactoring#搬移语句到函数-move-statements-into-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#搬移语句到调用者-move-statements-to-callers
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以函数调用取代内联代码-replace-inline-code-with-function-call
https://patch-diff.githubusercontent.com/notes-folder/refactoring#移动语句-slide-statements
https://patch-diff.githubusercontent.com/notes-folder/refactoring#拆分循环-split-loop
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以管道取代循环-replace-loop-with-pipeline
https://patch-diff.githubusercontent.com/notes-folder/refactoring#移除死代码-remove-dead-code
https://patch-diff.githubusercontent.com/notes-folder/refactoring#重新组织数据-organizing-data
https://patch-diff.githubusercontent.com/notes-folder/refactoring#拆分变量-split-variable
https://patch-diff.githubusercontent.com/notes-folder/refactoring#字段改名-rename-field
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以查询取代派生变量-replace-derived-variable-with-query
https://patch-diff.githubusercontent.com/notes-folder/refactoring#将引用对象改为值对象-change-reference-to-value
https://patch-diff.githubusercontent.com/notes-folder/refactoring#将值对象改为引用对象-change-value-to-reference
https://patch-diff.githubusercontent.com/notes-folder/refactoring#简化条件逻辑-simplifying-conditional-logic
https://patch-diff.githubusercontent.com/notes-folder/refactoring#分解条件表达式-decompose-conditional
https://patch-diff.githubusercontent.com/notes-folder/refactoring#合并条件表达式-consolidate-conditional-expression
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以卫语句取代件套表达式-replace-nested-conditional-with-guard-clauses
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以多态取代条件表达式-replace-conditional-with-polymorphism
https://patch-diff.githubusercontent.com/notes-folder/refactoring#引入特例-introduce-special-case
https://patch-diff.githubusercontent.com/notes-folder/refactoring#引入断言-introduce-assertion
https://patch-diff.githubusercontent.com/notes-folder/refactoring#重构api-refactoring-apis
https://patch-diff.githubusercontent.com/notes-folder/refactoring#将查询函数和修改函数分离-separate-query-from-modifier
https://patch-diff.githubusercontent.com/notes-folder/refactoring#函数参数化-parameterize-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#移除标记参数-remove-flag-argument
https://patch-diff.githubusercontent.com/notes-folder/refactoring#保持完整对象-preserve-whole-object
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以查询取代参数-replace-parameter-with-query
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以参数取代查询-replace-query-with-parameter
https://patch-diff.githubusercontent.com/notes-folder/refactoring#移除设值方法-remove-setting-method
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以工厂函数取代构造方法-replace-constructor-with-factory-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以命令取代函数-replace-function-with-command
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以函数取代命令-replace-command-with-function
https://patch-diff.githubusercontent.com/notes-folder/refactoring#处理继承关系-dealing-with-inheritance
https://patch-diff.githubusercontent.com/notes-folder/refactoring#方法上移-pull-up-method
https://patch-diff.githubusercontent.com/notes-folder/refactoring#字段上移-pull-up-field
https://patch-diff.githubusercontent.com/notes-folder/refactoring#构造方法本体上移-pull-up-constructor-body
https://patch-diff.githubusercontent.com/notes-folder/refactoring#方法下移-push-down-method
https://patch-diff.githubusercontent.com/notes-folder/refactoring#字段下移-push-down-field
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以子类取代类型码-replace-type-code-with-subclasses
https://patch-diff.githubusercontent.com/notes-folder/refactoring#移除子类-remove-subclass
https://patch-diff.githubusercontent.com/notes-folder/refactoring#提炼超类-extract-superclass
https://patch-diff.githubusercontent.com/notes-folder/refactoring#折叠继承关系-collapse-hierarchy
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以委托取代子类-replace-subclass-with-delegate
https://patch-diff.githubusercontent.com/notes-folder/refactoring#以委托取代超类-replace-superclass-with-delegate
refactoring https://patch-diff.githubusercontent.com/topics/refactoring
Readme https://patch-diff.githubusercontent.com/notes-folder/refactoring#readme-ov-file
Please reload this pagehttps://patch-diff.githubusercontent.com/notes-folder/refactoring
Activityhttps://patch-diff.githubusercontent.com/notes-folder/refactoring/activity
Custom propertieshttps://patch-diff.githubusercontent.com/notes-folder/refactoring/custom-properties
2 starshttps://patch-diff.githubusercontent.com/notes-folder/refactoring/stargazers
1 watchinghttps://patch-diff.githubusercontent.com/notes-folder/refactoring/watchers
1 forkhttps://patch-diff.githubusercontent.com/notes-folder/refactoring/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fnotes-folder%2Frefactoring&report=notes-folder+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/notes-folder/refactoring/releases
Packages 0https://patch-diff.githubusercontent.com/orgs/notes-folder/packages?repo_name=refactoring
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.