<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Design-Patterns on recca0120 技術筆記</title><link>https://recca0120.github.io/tags/design-patterns/</link><description>Recent content in Design-Patterns on recca0120 技術筆記</description><generator>Hugo -- gohugo.io</generator><language>zh-hant-tw</language><lastBuildDate>Tue, 09 Jun 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://recca0120.github.io/tags/design-patterns/index.xml" rel="self" type="application/rss+xml"/><item><title>AI 幫你加了快取，但它悄悄污染了商業邏輯——用裝飾者模式根治這個問題</title><link>https://recca0120.github.io/2026/06/09/decorator-pattern-cache/</link><pubDate>Tue, 09 Jun 2026 10:00:00 +0800</pubDate><guid>https://recca0120.github.io/2026/06/09/decorator-pattern-cache/</guid><description>分析 AI 寫程式時把快取邏輯嵌入 production code 的常見模式，以及為什麼「另開一個 class」不夠，用裝飾者模式才能真正把快取與商業邏輯切乾淨。</description><content:encoded>&lt;![CDATA[分析 AI 寫程式時把快取邏輯嵌入 production code 的常見模式，以及為什麼「另開一個 class」不夠，用裝飾者模式才能真正把快取與商業邏輯切乾淨。<br/><img src="https://recca0120.github.io/2026/06/09/decorator-pattern-cache/featured.png" alt="Featured image"/>]]></content:encoded><enclosure url="https://recca0120.github.io/2026/06/09/decorator-pattern-cache/featured.png" type="image/png" length="0"/><media:content url="https://recca0120.github.io/2026/06/09/decorator-pattern-cache/featured.png" medium="image"/><category>design-patterns</category><category>cache</category><category>TypeScript</category><category>clean-architecture</category><category>DevTools</category></item></channel></rss>