René's URL Explorer Experiment


Title: GitHub - xianweics/refator-code: 重构 - 改善既有代码的设计 · GitHub

Open Graph Title: GitHub - xianweics/refator-code: 重构 - 改善既有代码的设计

X Title: GitHub - xianweics/refator-code: 重构 - 改善既有代码的设计

Description: 重构 - 改善既有代码的设计. Contribute to xianweics/refator-code development by creating an account on GitHub.

Open Graph Description: 重构 - 改善既有代码的设计. Contribute to xianweics/refator-code development by creating an account on GitHub.

X Description: 重构 - 改善既有代码的设计. Contribute to xianweics/refator-code development by creating an account on GitHub.

Opengraph URL: https://github.com/xianweics/refator-code

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:51569aa5-1dc1-08f8-1a31-5592d90a2a14
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id9990:2F88AB:22A009:31DE6B:6A4BC243
html-safe-noncef2d7146bc89326c36cabee921c3c421c0e343f094602bb754fcccde202e52b5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTkwOjJGODhBQjoyMkEwMDk6MzFERTZCOjZBNEJDMjQzIiwidmlzaXRvcl9pZCI6IjUzNjA5ODM2NDM4NDg5NTAzMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbb0ae54ae2edeacd7f242b1642a14ca766cf26f9a2e8af72e7aa926bde0903a3
hovercard-subject-tagrepository:195668782
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/xianweics/refator-code
twitter:imagehttps://opengraph.githubassets.com/567aef4489165fd261266e048c5e4a015ae19c115cd2539e68d75c6c176006f3/xianweics/refator-code
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/567aef4489165fd261266e048c5e4a015ae19c115cd2539e68d75c6c176006f3/xianweics/refator-code
og:image:alt重构 - 改善既有代码的设计. Contribute to xianweics/refator-code development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None14aa00ce5bdb34d0eefb5facbffd7de9e144c688d8a93ef8df902d5f94b51dd7
turbo-cache-controlno-cache
go-importgithub.com/xianweics/refator-code git https://github.com/xianweics/refator-code.git
octolytics-dimension-user_id24938102
octolytics-dimension-user_loginxianweics
octolytics-dimension-repository_id195668782
octolytics-dimension-repository_nwoxianweics/refator-code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id195668782
octolytics-dimension-repository_network_root_nwoxianweics/refator-code
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
release58b8f89190447502561829f30862aa0a99d53367
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/xianweics/refator-code#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fxianweics%2Frefator-code
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fxianweics%2Frefator-code
Sign up https://github.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=xianweics%2Frefator-code
Reloadhttps://github.com/xianweics/refator-code
Reloadhttps://github.com/xianweics/refator-code
Reloadhttps://github.com/xianweics/refator-code
xianweics https://github.com/xianweics
refator-codehttps://github.com/xianweics/refator-code
Notifications https://github.com/login?return_to=%2Fxianweics%2Frefator-code
Fork 34 https://github.com/login?return_to=%2Fxianweics%2Frefator-code
Star 87 https://github.com/login?return_to=%2Fxianweics%2Frefator-code
Code https://github.com/xianweics/refator-code
Issues 0 https://github.com/xianweics/refator-code/issues
Pull requests 0 https://github.com/xianweics/refator-code/pulls
Actions https://github.com/xianweics/refator-code/actions
Projects https://github.com/xianweics/refator-code/projects
Security and quality 0 https://github.com/xianweics/refator-code/security
Insights https://github.com/xianweics/refator-code/pulse
Code https://github.com/xianweics/refator-code
Issues https://github.com/xianweics/refator-code/issues
Pull requests https://github.com/xianweics/refator-code/pulls
Actions https://github.com/xianweics/refator-code/actions
Projects https://github.com/xianweics/refator-code/projects
Security and quality https://github.com/xianweics/refator-code/security
Insights https://github.com/xianweics/refator-code/pulse
https://github.com/xianweics/refator-code
Brancheshttps://github.com/xianweics/refator-code/branches
Tagshttps://github.com/xianweics/refator-code/tags
https://github.com/xianweics/refator-code/branches
https://github.com/xianweics/refator-code/tags
40 Commitshttps://github.com/xianweics/refator-code/commits/master/
https://github.com/xianweics/refator-code/commits/master/
.gitignorehttps://github.com/xianweics/refator-code/blob/master/.gitignore
.gitignorehttps://github.com/xianweics/refator-code/blob/master/.gitignore
LICENSEhttps://github.com/xianweics/refator-code/blob/master/LICENSE
LICENSEhttps://github.com/xianweics/refator-code/blob/master/LICENSE
README.mdhttps://github.com/xianweics/refator-code/blob/master/README.md
README.mdhttps://github.com/xianweics/refator-code/blob/master/README.md
_config.ymlhttps://github.com/xianweics/refator-code/blob/master/_config.yml
_config.ymlhttps://github.com/xianweics/refator-code/blob/master/_config.yml
READMEhttps://github.com/xianweics/refator-code
MIT licensehttps://github.com/xianweics/refator-code
https://github.com/xianweics/refator-code#重构---改善既有代码的设计
https://github.com/xianweics/refator-code#1-重构第一个示例
https://github.com/xianweics/refator-code#2-重构的原则
https://github.com/xianweics/refator-code#21-何谓重构
https://github.com/xianweics/refator-code#22-两顶帽子
https://github.com/xianweics/refator-code#23-为何重构
https://github.com/xianweics/refator-code#24-何时重构
https://github.com/xianweics/refator-code#25-重构的挑战
https://github.com/xianweics/refator-code#26-重构架构和yagni
https://github.com/xianweics/refator-code#27-重构与软件开发过程
https://github.com/xianweics/refator-code#28-重构与性能
https://github.com/xianweics/refator-code#29-重构起源何处
https://github.com/xianweics/refator-code#210-自动化重构
https://github.com/xianweics/refator-code#3-代码的坏味道
https://github.com/xianweics/refator-code#4-构筑测试体系
https://github.com/xianweics/refator-code#41-自测试代码的价值
https://github.com/xianweics/refator-code#42-测试代码示例
https://github.com/xianweics/refator-code#43-第一个测试
https://github.com/xianweics/refator-code#44-再添加一个测试
https://github.com/xianweics/refator-code#45-修改测试夹具
https://github.com/xianweics/refator-code#46-探测边界条件
https://github.com/xianweics/refator-code#47-测试远不止如此
https://github.com/xianweics/refator-code#5-介绍重构名录
https://github.com/xianweics/refator-code#6-第一组重构
https://github.com/xianweics/refator-code#61-提炼函数
内联函数https://github.com/xianweics/refator-code#62%E5%86%85%E8%81%94%E5%87%BD%E6%95%B0
https://github.com/xianweics/refator-code#62-内联函数
提炼函数https://github.com/xianweics/refator-code#61-%E6%8F%90%E7%82%BC%E5%87%BD%E6%95%B0
https://github.com/xianweics/refator-code#63-提炼变量
内联变量https://github.com/xianweics/refator-code#64-%E5%86%85%E8%81%94%E5%8F%98%E9%87%8F
https://github.com/xianweics/refator-code#64-内联变量
提炼变量https://github.com/xianweics/refator-code#63-%E6%8F%90%E7%82%BC%E5%8F%98%E9%87%8F
https://github.com/xianweics/refator-code#65-改变函数声明
https://github.com/xianweics/refator-code#66-封装变量
https://github.com/xianweics/refator-code#67-变量改名
https://github.com/xianweics/refator-code#68-引入参数对象
https://github.com/xianweics/refator-code#69-函数组合成类
https://github.com/xianweics/refator-code#610-函数组合成变换
https://github.com/xianweics/refator-code#611-拆分阶段
https://github.com/xianweics/refator-code#7-封装
https://github.com/xianweics/refator-code#71-封装记录
https://github.com/xianweics/refator-code#72-封装集合
https://github.com/xianweics/refator-code#73-以对象取代基本类型
https://github.com/xianweics/refator-code#74-以查询取代临时变量
https://github.com/xianweics/refator-code#75-提取类
内联类https://github.com/xianweics/refator-code#76-%E5%86%85%E8%81%94%E7%B1%BB
https://github.com/xianweics/refator-code#76-内联类
提炼类https://github.com/xianweics/refator-code#75-%E6%8F%90%E7%82%BC%E7%B1%BB
https://github.com/xianweics/refator-code#77-隐藏委托关系
移除中间人https://github.com/xianweics/refator-code#78-%E7%A7%BB%E9%99%A4%E4%B8%AD%E9%97%B4%E4%BA%BA
https://github.com/xianweics/refator-code#78-移除中间人
隐藏委托关系https://github.com/xianweics/refator-code#77-%E9%9A%90%E8%97%8F%E5%A7%94%E6%89%98%E5%85%B3%E7%B3%BB
隐藏委托关系https://github.com/xianweics/refator-code#77-%E9%9A%90%E8%97%8F%E5%A7%94%E6%89%98%E5%85%B3%E7%B3%BB
https://github.com/xianweics/refator-code#79-替换算法
https://github.com/xianweics/refator-code#8-搬移特性
https://github.com/xianweics/refator-code#81-搬移函数
https://github.com/xianweics/refator-code#82-搬移字段
https://github.com/xianweics/refator-code#83-搬移语句到函数
搬移语句到调用者https://github.com/xianweics/refator-code#83-%E6%90%AC%E7%A7%BB%E8%AF%AD%E5%8F%A5%E5%88%B0%E8%B0%83%E7%94%A8%E8%80%85
https://github.com/xianweics/refator-code#84-搬移语句到调用者
搬移语句到函数https://github.com/xianweics/refator-code#83-%E6%90%AC%E7%A7%BB%E8%AF%AD%E5%8F%A5%E5%88%B0%E5%87%BD%E6%95%B0
https://github.com/xianweics/refator-code#85-以函数调用取代内联代码
https://github.com/xianweics/refator-code#86-移动语句
https://github.com/xianweics/refator-code#87-拆分循环
https://github.com/xianweics/refator-code#88-以管道取代循环
https://github.com/xianweics/refator-code#89-移除死代码
https://github.com/xianweics/refator-code#9-重新组织数据
https://github.com/xianweics/refator-code#91-拆分代码
https://github.com/xianweics/refator-code#92-字段改名
https://github.com/xianweics/refator-code#93-以查询取代派生变量
https://github.com/xianweics/refator-code#94-将引用对象改为值对象
将值对象改为引用对象https://github.com/xianweics/refator-code#94-%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
https://github.com/xianweics/refator-code#95-将值对象改为引用对象
https://github.com/xianweics/refator-code#10-简化条件逻辑
https://github.com/xianweics/refator-code#101-分解条件表达式
https://github.com/xianweics/refator-code#102-合并条件表达式
https://github.com/xianweics/refator-code#103-卫语句取代嵌套条件表达式
https://github.com/xianweics/refator-code#104-以多态取代条件表达式
https://github.com/xianweics/refator-code#105-引入特例
https://github.com/xianweics/refator-code#106-引入断言
https://github.com/xianweics/refator-code#11-重构api
https://github.com/xianweics/refator-code#111-查询函数和修改函数分离
https://github.com/xianweics/refator-code#112-函数参数化
https://github.com/xianweics/refator-code#113-移除标记参数
https://github.com/xianweics/refator-code#114-保持对象完整性
https://github.com/xianweics/refator-code#115-以查询取代参数
以参数取代查询https://github.com/xianweics/refator-code#116-%E4%BB%A5%E5%8F%82%E6%95%B0%E5%8F%96%E4%BB%A3%E6%9F%A5%E8%AF%A2
https://github.com/xianweics/refator-code#116-以参数取代查询
以查询取代参数https://github.com/xianweics/refator-code#115-%E4%BB%A5%E6%9F%A5%E8%AF%A2%E5%8F%96%E4%BB%A3%E5%8F%82%E6%95%B0
https://github.com/xianweics/refator-code#117-移除设置函数
https://github.com/xianweics/refator-code#118-以工厂函数取代构造函数
https://github.com/xianweics/refator-code#119-以命令取代函数
以函数取代命令https://github.com/xianweics/refator-code#1110-%E4%BB%A5%E5%87%BD%E6%95%B0%E5%8F%96%E4%BB%A3%E5%91%BD%E4%BB%A4
https://github.com/xianweics/refator-code#1110-以函数取代命令
以命令取代函数https://github.com/xianweics/refator-code#119-%E4%BB%A5%E5%91%BD%E4%BB%A4%E5%8F%96%E4%BB%A3%E5%87%BD%E6%95%B0
https://github.com/xianweics/refator-code#12-处理继承关系
函数上移https://github.com/xianweics/refator-code#121-%E5%87%BD%E6%95%B0%E4%B8%8A%E7%A7%BB
字段上移https://github.com/xianweics/refator-code#122-%E5%AD%97%E6%AE%B5%E4%B8%8A%E7%A7%BB
构造函数本体上移https://github.com/xianweics/refator-code#123-%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%E6%9C%AC%E4%BD%93%E4%B8%8A%E7%A7%BB
函数下移https://github.com/xianweics/refator-code#124-%E5%87%BD%E6%95%B0%E4%B8%8B%E7%A7%BB
字段下移https://github.com/xianweics/refator-code#125-%E5%AD%97%E6%AE%B5%E4%B8%8B%E7%A7%BB
移除子类https://github.com/xianweics/refator-code#127-%E7%A7%BB%E9%99%A4%E5%AD%90%E7%B1%BB
提取超类https://github.com/xianweics/refator-code#128-%E6%8F%90%E5%8F%96%E8%B6%85%E7%B1%BB
折叠继承体系https://github.com/xianweics/refator-code#129-%E6%8A%98%E5%8F%A0%E7%BB%A7%E6%89%BF%E4%BD%93%E7%B3%BB
以子类取代类型码https://github.com/xianweics/refator-code#126-%E4%BB%A5%E5%AD%90%E7%B1%BB%E5%8F%96%E4%BB%A3%E7%B1%BB%E5%9E%8B%E7%A0%81
以委托取代子类https://github.com/xianweics/refator-code#1210-%E4%BB%A5%E5%A7%94%E6%89%98%E5%8F%96%E4%BB%A3%E5%AD%90%E7%B1%BB
以委托取代超类https://github.com/xianweics/refator-code#1211-%E4%BB%A5%E5%A7%94%E6%89%98%E5%8F%96%E4%BB%A3%E8%B6%85%E7%B1%BB
https://github.com/xianweics/refator-code#121-函数上移
函数下移https://github.com/xianweics/refator-code#124-%E5%87%BD%E6%95%B0%E4%B8%8B%E7%A7%BB
https://github.com/xianweics/refator-code#122-字段上移
移构造函数本体上移https://github.com/xianweics/refator-code#123-%E6%9E%84%E9%80%A0%E5%87%BD%E6%95%B0%E6%9C%AC%E4%BD%93%E4%B8%8A%E7%A7%BB
https://github.com/xianweics/refator-code#123-构造函数本体上移
https://github.com/xianweics/refator-code#124-函数下移
函数上移https://github.com/xianweics/refator-code#122-%E5%AD%97%E6%AE%B5%E4%B8%8A%E7%A7%BB
https://github.com/xianweics/refator-code#125-字段下移
字段上移https://github.com/xianweics/refator-code#122-%E5%AD%97%E6%AE%B5%E4%B8%8A%E7%A7%BB
https://github.com/xianweics/refator-code#126-以子类取代类型码
移除子类https://github.com/xianweics/refator-code#127-%E7%A7%BB%E9%99%A4%E5%AD%90%E7%B1%BB
https://github.com/xianweics/refator-code#127-移除子类
以子类取代类型码https://github.com/xianweics/refator-code#126-%E4%BB%A5%E5%AD%90%E7%B1%BB%E5%8F%96%E4%BB%A3%E7%B1%BB%E5%9E%8B%E7%A0%81
https://github.com/xianweics/refator-code#128-提取超类
https://github.com/xianweics/refator-code#129-折叠继承体系
https://github.com/xianweics/refator-code#1210-以委托取代子类
https://github.com/xianweics/refator-code#1211-以委托取代超类
以委托取代超类https://github.com/xianweics/refator-code#1211-%E4%BB%A5%E5%A7%94%E6%89%98%E5%8F%96%E4%BB%A3%E8%B6%85%E7%B1%BB
Readme https://github.com/xianweics/refator-code#readme-ov-file
MIT license https://github.com/xianweics/refator-code#MIT-1-ov-file
Please reload this pagehttps://github.com/xianweics/refator-code
Activityhttps://github.com/xianweics/refator-code/activity
34 forkshttps://github.com/xianweics/refator-code/forks
Report repository https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fxianweics%2Frefator-code&report=xianweics+%28user%29
Releases 1https://github.com/xianweics/refator-code/releases
1.0.0: 1. fix style issue Latest Feb 7, 2022 https://github.com/xianweics/refator-code/releases/tag/1.0.0
Packages 0https://github.com/users/xianweics/packages?repo_name=refator-code
Please reload this pagehttps://github.com/xianweics/refator-code
Contributorshttps://github.com/xianweics/refator-code/graphs/contributors
Please reload this pagehttps://github.com/xianweics/refator-code
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.