摘要:
偶然看到一篇文章, https://www.cnblogs.com/buguge/p/19055703 对这篇文章的设计进行了更改。 原来设计的类图 和流程图 : 原有设计的优缺点: 优点 实现了解耦 核心优势:业务层(插件)不依赖于上层应用的具体实现,而是依赖于一个抽象的接口 (TransferC
阅读全文
posted @ 2025-09-21 12:00
tortelee
阅读(34)
推荐(0)
摘要:
Folly Expected 错误处理设计指南 概述 Folly的Expected<Value, Error>采用了一种强制性的错误处理设计,通过类型系统和运行时检查来确保程序员正确处理错误情况。这种设计将业务错误和程序逻辑错误明确区分,强制上层调用者遵循安全的访问模式。 底层设计机制 核心设计原理
阅读全文
posted @ 2025-09-07 12:13
tortelee
阅读(24)
推荐(0)
摘要:
好的,我来举一个具体的例子,帮助你理解 interface、element、resource 和 architecture 之间的关系。 场景:设计一个用户管理系统的接口 背景 假设我们正在设计一个用户管理系统,系统中有两个主要的模块: 用户服务模块(User Service):负责用户的注册、登录
阅读全文
posted @ 2025-06-29 20:15
tortelee
阅读(5)
推荐(0)
摘要:
Abstract common services 减少依赖时候,有一个策略,是Abstract common services. Where two modules provide services that are similar but not quite the same, it may be
阅读全文
posted @ 2025-05-11 17:29
tortelee
阅读(27)
推荐(0)
摘要:
what is Intermediary in software design? The "Use an Intermediary" tactic is a software design approach where a middle layer (intermediary) is introdu
阅读全文
posted @ 2025-05-05 20:12
tortelee
阅读(25)
推荐(0)
摘要:
Definition This is the definition from wikipedia. In software systems, *encapsulate* refers to the bundling of data with the mechanisms or methods tha
阅读全文
posted @ 2025-05-05 15:29
tortelee
阅读(22)
推荐(0)
摘要:
How Layers Should Be Realized The matter of how layers should be realized is determined by the client-server nature of the relationship between an app
阅读全文
posted @ 2025-01-21 22:39
tortelee
阅读(44)
推荐(0)
摘要:
Q: 我们来讨论一个具体的层级关系。假设有一个DisplayObject 层级。然后我们有一个层级,专门封装了一些方法,关于如何画displayobject。 这个层级是服务于display object ,可以看作是display object的extension 部分。 还有一个层级,关于如何从
阅读全文
posted @ 2025-01-06 22:53
tortelee
阅读(48)
推荐(0)
摘要:
本文主要讲述,在windows操作系统中,在mingw64环境下,使用python脚本来简化编译步骤。 结果展示 我们只需要一个简单的b命令,就可以完成cmake的一些重复性的编译操作。 在之前,我们需要手动输入这些命令 rm -f -r build mkdir build cmake -G "Mi
阅读全文
posted @ 2024-12-26 14:47
tortelee
阅读(67)
推荐(0)
摘要:
Here in the github, there is a collection for the programming engineering blogs: https://github.com/donnemartin/system-design-primer/tree/master?tab=r
阅读全文
posted @ 2024-10-03 10:14
tortelee
阅读(11)
推荐(0)