From 7b74180dcda979decdfc10b831dde83a197c822a Mon Sep 17 00:00:00 2001 From: Gang Yin <1246410+yingang@users.noreply.github.com> Date: Fri, 21 Feb 2025 09:26:42 +0800 Subject: [PATCH] update zh-tw script for the translation of object-oriented --- bin/zh-tw.py | 1 + zh-tw/ch3.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/zh-tw.py b/bin/zh-tw.py index 2f61f21..ecb3a73 100755 --- a/bin/zh-tw.py +++ b/bin/zh-tw.py @@ -19,6 +19,7 @@ def convert(src_path, dst_path, cfg='s2twp.json'): .replace('下麵條件', '下面條件') # 优先按“面条”解析了? .replace('當日志', '當日誌') # 优先按“当日”解析了,没有考虑后面的“日志”? .replace('真即時間', '真實時間') # 优先按“实时”解析了,没有考虑前面的“真实”? + .replace('面向物件', '物件導向') for line in src)) print("convert %s to %s" % (src_path, dst_path)) diff --git a/zh-tw/ch3.md b/zh-tw/ch3.md index f05cec0..47bf94f 100644 --- a/zh-tw/ch3.md +++ b/zh-tw/ch3.md @@ -70,7 +70,7 @@ The pros and cons of document and relational data have been debated extensively; ### 物件關係不匹配 -目前大多數應用程式開發都使用面向物件的程式語言來開發,這導致了對 SQL 資料模型的普遍批評:如果資料儲存在關係表中,那麼需要一個笨拙的轉換層,處於應用程式程式碼中的物件和表,行,列的資料庫模型之間。模型之間的不連貫有時被稱為 **阻抗不匹配(impedance mismatch)**[^i]。 +目前大多數應用程式開發都使用物件導向的程式語言來開發,這導致了對 SQL 資料模型的普遍批評:如果資料儲存在關係表中,那麼需要一個笨拙的轉換層,處於應用程式程式碼中的物件和表,行,列的資料庫模型之間。模型之間的不連貫有時被稱為 **阻抗不匹配(impedance mismatch)**[^i]。 Much application development today is done in object-oriented programming languages, which leads to a common criticism of the SQL data model: if data is stored in relational tables, an awkward translation layer is required between the objects in the application code and the database model of tables, rows, and columns. The disconnect between the models is sometimes called an *impedance mismatch*.