<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>三次法则 on 编程心语</title>
		<link>https://www.ithome.me/tags/%E4%B8%89%E6%AC%A1%E6%B3%95%E5%88%99/</link>
		<description>Recent content in 三次法则 on 编程心语</description>
		<generator>Hugo</generator>
		<language>zh-CN</language>
		
		
		
		
			<lastBuildDate>Tue, 04 Aug 2026 14:59:27 +0800</lastBuildDate>
		
			<atom:link href="https://www.ithome.me/tags/%E4%B8%89%E6%AC%A1%E6%B3%95%E5%88%99/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>三次法则实战：从重复到抽象的重构决策</title>
				<link>https://www.ithome.me/post/2026/07/14/rule-of-three-refactoring/</link>
				<pubDate>Tue, 14 Jul 2026 08:00:00 +0800</pubDate>
				<guid>https://www.ithome.me/post/2026/07/14/rule-of-three-refactoring/</guid>
				<description>&lt;h2 id=&#34;为什么不要重复不是铁律&#34;&gt;为什么&amp;quot;不要重复&amp;quot;不是铁律&lt;/h2&gt;&#xA;&lt;p&gt;很多开发者把 DRY（Don&amp;rsquo;t Repeat Yourself）奉为圭臬，一看到重复代码就急着抽取公共函数。结果呢？公共函数越来越臃肿，参数列表越来越长，最终变成一个谁也不敢动的&amp;quot;上帝函数&amp;quot;。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
