<?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/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/</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/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/index.xml" rel="self" type="application/rss+xml"/><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>Active Record 的限制与缺陷：为什么它不适合复杂领域</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/active-record-limitations/</link><pubDate>Sat, 24 Jan 2026 15:29:20 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/active-record-limitations/</guid><description>分析 Active Record 模式的局限性，并给出适用边界与替代方案。</description></item><item><title>反腐败层（ACL）：如何隔离外部系统的复杂性</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/anti-corruption-layer/</link><pubDate>Sat, 24 Jan 2026 13:08:42 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/anti-corruption-layer/</guid><description>解释反腐败层的作用、使用场景与实现方式。</description></item><item><title>线程安全单例：如何正确实现与验证</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/thread-safe-singleton/</link><pubDate>Sat, 24 Jan 2026 13:08:42 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/thread-safe-singleton/</guid><description>解释线程安全单例的实现方式与常见陷阱。</description></item><item><title>好莱坞原则：别打给我，我会打给你</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/hollywood-principle/</link><pubDate>Sat, 24 Jan 2026 12:45:38 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/hollywood-principle/</guid><description>解释好莱坞原则的含义、与 IoC 的关系，以及在框架设计中的落地方式。</description></item><item><title>Active Record vs Data Mapper：差异、优缺点与选型</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/active-record-vs-data-mapper/</link><pubDate>Sat, 24 Jan 2026 12:40:32 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/active-record-vs-data-mapper/</guid><description>对比 Active Record 与 Data Mapper 两种持久化模式的适用场景与代价。</description></item><item><title>迪米特法则（最少知识原则）：违例与修复示例</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/law-of-demeter/</link><pubDate>Sat, 24 Jan 2026 12:40:32 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/law-of-demeter/</guid><description>解释迪米特法则的核心思想，并给出违反与修复示例。</description></item><item><title>空对象模式的目的：消除空指针分支</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/null-object-pattern/</link><pubDate>Sat, 24 Jan 2026 12:40:32 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/null-object-pattern/</guid><description>解释空对象模式的设计目的、适用场景与工程落地示例。</description></item><item><title>全局对象为何危险：隐藏依赖与测试失控</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/global-object-anti-pattern/</link><pubDate>Sat, 24 Jan 2026 12:40:32 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/global-object-anti-pattern/</guid><description>通过示例说明全局对象的危害，并给出替代方案。</description></item><item><title>为什么组合优于继承：灵活性、可测试性与演进成本</title><link>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/composition-over-inheritance/</link><pubDate>Sat, 24 Jan 2026 12:40:32 +0800</pubDate><guid>https://shio-chan-dev.github.io/jeanblog/zh/dev/design-patterns/composition-over-inheritance/</guid><description>解释“组合优于继承”的工程原因，并给出可运行示例与落地步骤。</description></item></channel></rss>