<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>设计模式 - 标签 - MartinLwx&#39;s Blog</title>
        <link>https://martinlwx.github.io/zh-cn/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/</link>
        <description>设计模式 - 标签 - MartinLwx&#39;s Blog</description>
        <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>martinlwx@163.com (MartinLwx)</managingEditor>
            <webMaster>martinlwx@163.com (MartinLwx)</webMaster><copyright>&lt;a rel=&#34;license noopener&#34; href=&#34;https://creativecommons.org/licenses/by-nc-nd/4.0/&#34; target=&#34;_blank&#34;&gt;CC BY-NC-ND 4.0&lt;/a&gt;</copyright><lastBuildDate>Wed, 08 Jul 2026 20:00:00 &#43;0800</lastBuildDate><atom:link href="https://martinlwx.github.io/zh-cn/tags/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/" rel="self" type="application/rss+xml" /><item>
    <title>深入理解访问者模式：双分派的艺术</title>
    <link>https://martinlwx.github.io/zh-cn/visitor-pattern-understanding-double-dispatch/</link>
    <pubDate>Wed, 08 Jul 2026 20:00:00 &#43;0800</pubDate><author>
        <name>MartinLwx</name>
    </author><guid>https://martinlwx.github.io/zh-cn/visitor-pattern-understanding-double-dispatch/</guid>
    <description><![CDATA[<h2 id="背景" class="headerLink">
    <a href="#%e8%83%8c%e6%99%af" class="header-mark"></a>背景</h2><p>在 AI Coding 时代，代码实现已经不是瓶颈，更难的反而是你如何去约束 Coding Agent 的行为，让它可以有高质量的代码产出。这些约束一般是比较 high-level 的东西，像是设计模式、软件架构等。在这样的时代背景下，了解这些知识在我看来是更加重要的。以设计模式为例，你需要知道对应的设计模式是什么，它解决了什么问题，适用于什么场景等才能够用清晰的<strong>自然语言描述</strong>去指导 Coding Agent。今天要要介绍的就是其中一个设计模式————访问者模式（Visitor Pattern）</p>]]></description>
</item></channel>
</rss>
