<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>重构 on Jeanphilo Blog</title><link>https://shio-chan-dev.github.io/jeanblog/zh/tags/%E9%87%8D%E6%9E%84/</link><description>Recent content in 重构 on Jeanphilo Blog</description><generator>Hugo -- 0.159.2</generator><language>zh-cn</language><lastBuildDate>Sat, 24 Jan 2026 15:42:47 +0800</lastBuildDate><atom:link href="https://shio-chan-dev.github.io/jeanblog/zh/tags/%E9%87%8D%E6%9E%84/index.xml" rel="self" type="application/rss+xml"/><item><title>用多态替换 if：把流程判断变成对象职责</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design/replace-if-with-polymorphism/</link><pubDate>Sat, 24 Jan 2026 15:42:47 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design/replace-if-with-polymorphism/</guid><description>通过对象职责拆分，消除重复 if 判断。</description></item><item><title>用多态替换 switch：让代码更符合开闭原则</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/replace-switch-with-polymorphism/</link><pubDate>Sat, 24 Jan 2026 15:42:47 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/replace-switch-with-polymorphism/</guid><description>通过策略模式消除 switch 语句，降低分支扩展成本。</description></item><item><title>如何处理遗留代码：安全改动与渐进式重构</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/engineering/legacy-code-management/</link><pubDate>Sat, 24 Jan 2026 12:47:45 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/engineering/legacy-code-management/</guid><description>给出处理遗留代码的工程策略，包括测试保护网与渐进式改造。</description></item><item><title>重构何时有用：时机、信号与风险控制</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/engineering/refactoring-when/</link><pubDate>Sat, 24 Jan 2026 12:42:52 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/engineering/refactoring-when/</guid><description>解释重构适用场景、触发信号与风险控制方法。</description></item></channel></rss>