英语翻译:开篇——抽象工厂陌路vs追忆

大学时代的时候英语就一直很差,到现在留下了个灾难,遇到英语文章就跳过,但是听师父说,国外的原创技术文章资源非常的丰富,而翻译过后的文章可能意思就有所偏差了,毕竟每个人的理解可能都不一样。所以从今天起呢,每天阅读一些技术文章然后进行翻译,在这里发布出来,也希望大家给予指正。

原文:

The abstract factory pattern is a software design pattern that provides a way to encapsulate a group of individual factories that have a common theme. In normal usage, the client software creates a concrete implementation of the abstract factory and then uses the generic interfaces to create the concrete objects that are part of the theme. The client does not know (or care) which concrete objects it gets from each of these internal factories since it uses only the generic interfaces of their products. This pattern separates the details of implementation of a set of objects from their general usage.

抽象工厂模式是一个软件设计模式,它提供了一种方法用来封装一组有着共同主题的工厂。通常用法是客户端软件创建一个抽象工厂的具体实现,然后用通用接口来创建具体对象(主题的一部分)。客户端不知道(或者说不关心)具体对象来自哪个内部工厂,因为它用的是他们的产品的通用接口。这个模式从一组对象的一般用法中分离了对象的具体实现。

An example of this would be an abstract factory class DocumentCreator that provides interfaces to create a number of products (e.g. createLetter() and createResume()). The system would have any number of derived concrete versions of the DocumentCreator class like FancyDocumentCreator or ModernDocumentCreator, each with a different implementation of createLetter() and createResume() that would create a corresponding object like FancyLetter or ModernResume. Each of these products is derived from a simple abstract class like Letter or Resume of which the client is aware. The client code would get an appropriate instance of the DocumentCreator and call its factory methods. Each of the resulting objects would be created from the same DocumentCreator implementation and would share a common theme (they would all be fancy or modern objects). The client would need to know how to handle only the abstract Letter orResume class, not the specific version that it got from the concrete factory.

一个例子是一个抽象类DocumentCreator 提供创建一些产品的接口(如:createLetter()和createResume())。系统应该有一些DocumentCreator 类的不同的子类比如FancyDocumentCreator或ModernDocumentCreator,他们分别实现了createLetter() 和createResume() 同来创建对应的像 FancyLetter 或者 ModernResume的类。每一个产品继承自像Letter 或 Resume这样的客户端知道的抽象类 。客户端代码将获得一个DocumentCreator 的相应实例然后访问它的工厂方法。每个结果对象被相同的DocumentCreator实现创建而且共有一个主题(都将是fancy 或者 modern 对象)。客户端只需要知道怎么处理是 Letter 或者Resume 的抽象类,不需要知道它怎么从具体的工厂来的。

In software development, a Factory is the location in the code at which objects are constructed. The intent in employing the pattern is to insulate the creation of objects from their usage. This allows for new derived types to be introduced with no change to the code that uses the base class.

在软件开发中,工厂是类被创建的地方。使用这个模式的意图是把对象的创建从使用中隔离。我们可以在不改变基类的基础上引进派生类。

Use of this pattern makes it possible to interchange concrete classes without changing the code that uses them, even at runtime. However, employment of this pattern, as with similar design patterns, may result in unnecessary complexity and extra work in the initial writing of code. Used correctly the "extra work" pays off in the second instance of using the Factory.

用这个模式可以在不改变用到的代码的同时改变具体类,甚至是在运行时。然而同其他相似的设计模式一样,用这个模式可能会带来不必要的复杂性和写代码初期的额外工作量。正确使用“额外工作”回报在用工厂第二次实例化

THE END
0.factory是什么意思factory的用法翻译读音factory核心词汇 英['fæktri] 美['fæktri] 释义 用例 词组 讲解 更多 n. 工厂;制造厂 释义常用度分布图 下载海词词典查看 双解释义 n. (名词) [C]工厂,制造厂 building in which goods are manufactured 详尽释义 n. 名词 工厂 制造厂 代理处,代理店,代办处 地方 工场 英英释义 Nounjvzq<84o0eusr7ikev4dp8kcevus{
1.工厂英文是什么意思工厂英文的翻译音标读音用法例句爱词霸权威在线词典,为您提供工厂 英文的中文意思,工厂 英文的用法讲解,工厂 英文的读音,工厂 英文的同义词,工厂 英文的反义词,工厂 英文的例句等英语服务。jvzquC41o0odkkf0eqs0'N:'D9+B7.J7':K&:;*42'K9'AG'D3+F8.>8':=
2.FACTORY中文(簡體)翻譯:劍橋詞典factory noun[C] uk /ˈfæk.tər.i/us /ˈfæk.tɚ.i/ Add to word list A1 abuildingor set ofbuildingswherelargeamountsofgoodsare made usingmachines 工厂 acar/shoe/textilefactory汽车/制鞋/纺织厂 a factoryworker/manager工厂工人/经理 jvzquC41fkiukxsct{4dcvgtkfmf0xwi1|nu1.J:'C?&;N*G7'>6'K=1'G>&:K*D3'K9'JF';G3&G?*DE'G3'N='CC+:G6*G9'H1'J6'G;+BD.>61hgdvxw{
3.工厂英语单词汇总.pdf文档分类:外语学习|页数:约40页 1/40 分享到: 1/40下载此文档 文档列表文档介绍 1. 机械与工厂英语 组装、冲压、喷漆等专业词汇 Assembly line 组装线 bezel panel 面板 Layout 布置图 power button 电源按键 Conveyer 流水线物料板 reset button 重置键 jvzquC41yy}/vjtfqey/exr1r/;23:9876>/j}rn
4.工厂英语怎么说工厂英文翻译工厂英语怎么说?汉程汉英词典提供工厂的英语翻译、拼音、读音及相关英语词汇等。jvzquC41h{4iv}uep0ipo8Mvon5fp8Hjkpktg}tGpirjuq4421vxmxpqmqg{onhstpirtwz{0jznn
5.definitionfactory是什么意思definitionfactory的翻译爱词霸权威在线词典,为您提供definition-factory的中文意思,definition-factory的用法讲解,definition-factory的读音,definition-factory的同义词,definition-factory的反义词,definition-factory的例句等英语服务。jvzquC41yy}/klndc0ipo8|qtfEx?mjhkpoukxs/hciuq{~
6.工厂英语怎么写什么意思?在线翻译汉字拼音转换汉字笔画查询在线组词近义词反义词计算题大全 工厂.. 翻译 原文(简体中文): 工厂更多:https://www.bmcx.com/ 翻译结果(英语)1: Factory更多:https://www.bmcx.com/ 翻译结果(英语)2: Factory更多:https://www.bmcx.com/ 翻译结果(英语)3: The factory更多:https://www.bmcx.com/jvzquC41hctzk7goez4dqv4o49;7kwxoj5:zghdhcpj1
7.工厂职位英语kingcobra>《外语学习》 2025.03.21 四川 关注 管理类职位 Factory Manager —— 工厂经理 Production Manager —— 生产经理 Quality Control Manager —— 质量控制经理 Supply Chain Manager —— 供应链经理 Operations Manager —— 运营经理 Warehouse Manager —— 仓库经理 jvzquC41yy}/5?5fqe4dp8ftvkimg8=758<66Bd336?63B>520nuou
8.工厂英文怎么写工厂用英语怎么说沪江英语词库精选工厂英文怎么写、工厂用英语怎么说及怎么读、工厂用英语怎么说、工厂的英语读音及例句。jvzquC41o0nvlrfpi0ipo8hkmw5xa:57;8e.4A<97:=8
9.factory是什么意思factory的中文翻译音标读音用法例句☆ 16世纪50年代进入英语,直接源自中古法语的factorie,意为地产经理的办公室;最初源自拉丁语的factor,意为制造者。 词组短语 1.build a factory 建造工厂 2.close a factory 关闭工厂 3.erect a factory 建造工厂 4.manage a factory 管理工厂 5.open a factory 开办工 jvzq<84fcpij0pjk80ipo8kcevus{7mvon
10.工厂代号英文怎么写工厂代号英语怎么说返回 沪江英语词库 导航 查词 工厂代号 works code相关短语 in the works 正在进行,正在准备 be in the works 正在进行中 shoot the works 孤注一掷,不惜代价,冒最大危险 betterment works 改善工程 capital works 基本建设工程 condensing works 冷凝装置 cutoff works 裁弯工程 draw works 旋转钻进绞车 groin jvzquC41yy}/j~okcpm/exr1ekqv1<>9;4:`/A58;6=42?
11.加工厂的英文怎么说n. 植物;工厂;机器设备 v. 栽种;播种;布置;插入 A bur of this plant. 这种植物的刺果 They are planted for hedges. 它们种起来当作篱笆。 This is a precocious plant. 这是一株“早熟”的植物。 finished是什么意思: adj. 精巧的;完蛋的;完成的 jvzquC41yy}/jsjpinotj7hqo1tfy8u8827998
12.工厂参观的英语对话参观工厂是公司与公司进行合作的一个重要决定条件。下面是学习啦小编给大家整理的工厂参观的英语对话,供大家参阅! 工厂参观的英语对话:接待外商参观工厂设计部和生产线 杨云: Peter, welcome to our factory. 皮特,欢迎到我们工厂来。 皮特: I’ve been looking forward to visiting your factory. jvzquC41yy}/z~jzkng/exr1{kth{~4mqwv1;659:?50qyon
13.《工厂常用英语A.xls》支持高清全文免费浏览大小:223.5 KB 字数:约3.57万字 发布时间:2015-07-28发布于山西 浏览人气:13 下载次数:仅上传者可见 收藏次数:0 需要金币:*** 金币(10金币=人民币1元) 工厂常用英语-A.xls 关闭预览 想预览更多内容,点击免费在线预览全文 免费在线预览全文 工厂常用英语-A,工厂常用英语,常用英语口语,出国旅游常用英语,常用英jvzquC41oc~/dxtm33>/exr1jvsm1;5371684A4443;98?50ujzn
14.商务英语口语情景练习:参观工厂英语商务口语是职场中比较常用的,在不同的场合,英语口语也有很多的注意事项。所以想要更好的提升商务口语能力,大家还是需要在平时做好相应的训练。具体的商务口语需要提升哪些呢?下面小编为大家整理了“商务英语口语情景练习:参观工厂”相关内容,一起来看看吧! A: We'd like to welcome everyone to the Michelson Tools jvzquC41gpmmk|m0mqumgjwp0eun1;54537188=924;40qyon
15.关于参观工厂的商务英语情景对话工厂参观是外贸合作中的“临门一脚”——客户通过实地考察判断你的生产能力、质量把控和管理水平,能不能拿下订单,往往就看这几小时的沟通。但很多人要么只会说“This is our factory”,要么专业术语卡壳,错失良机。本文整理了5个核心场景的商务英语对话模板(附中文解析+实用技巧),从开场寒暄到生产线讲解,从质量提jvzquC41yy}/srszwg9777hqo1zz4dge536A580jznn
16.查理和巧克力工厂CharlieandtheChocolateFactory查理与巧克力工厂英语原版English: "Charlie and the Chocolate Factory" is a children's novel written by Roald Dahl. It tells the story of a poor boy named Charlie Bucket who wins a golden ticket to visit the mysterious chocolate factory run by the eccentric Willy Wonka. As Charlie and four jvzquC41o0972mteu0tfv8iqe17e3<=965770qyon