<?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 文叨叨 | IaaS 排障手记</title><link>/tags/%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1/</link><description>Recent content in 面向对象 on 文叨叨 | IaaS 排障手记</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 25 Apr 2026 10:00:00 +0800</lastBuildDate><atom:link href="/tags/%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1/index.xml" rel="self" type="application/rss+xml"/><item><title>面向过程还是面向对象？对象是骨架，流程是血肉</title><link>/posts/oop-vs-procedural/</link><pubDate>Sat, 25 Apr 2026 10:00:00 +0800</pubDate><guid>/posts/oop-vs-procedural/</guid><description>流程是易变的、脆弱的，对象是稳定的、高内聚的。面向对象的流程是分治，将易变的流程拆分成多个稳定的对象，对象之间面向接口协作，复杂性拆分成局部复杂性。</description></item><item><title>即便是补丁，也要面向对象，而不是针对流程打补丁</title><link>/posts/patch-object-oriented/</link><pubDate>Sat, 21 Mar 2026 10:00:00 +0800</pubDate><guid>/posts/patch-object-oriented/</guid><description>哪里遇到问题了，就找个地方加个开关、加个检查、加个条件判断来处理掉。这导致不够系统化，引入了局部的分支点，会造成多流程的耦合交叉，扩展容易遗漏。</description></item><item><title>面向接口，面向接口，面向接口</title><link>/posts/interface-oriented/</link><pubDate>Sun, 08 Mar 2026 10:00:00 +0800</pubDate><guid>/posts/interface-oriented/</guid><description>接口很多时候听起来很有道理，写的时候会质疑是不是为了接口而接口。一写二抄三重构，前面没有必要的时候不用接口，后面重复的时候可以引入接口。</description></item><item><title>抽象流程还是抽象对象？一写二抄三重构</title><link>/posts/abstract-flow-vs-object/</link><pubDate>Sun, 15 Feb 2026 10:00:00 +0800</pubDate><guid>/posts/abstract-flow-vs-object/</guid><description>要不要抽象，关键在于要不要复用。业务流程都是独立的，不需要复用；技术类流程需要复用。一写二抄三重构，第二次大量重复时就可以开始重构了。</description></item></channel></rss>