有一個字在中文叫做"模組"
英文中有許多跟模組很類似的字
這幾個名詞每次都搞不清楚,
把它列出來:
1. module
http://encyclopedia2.thefreedictionary.com/module
Modules are usually compiled seperately (in compiled languages) and provide an abstraction or information hiding mechanism so that a module's implementation can be changed without requiring any change to other modules. In this respect they are similar to objects in an object-oriented language, though a module may contain many procedures and/or functions which would correspond to many objects.
A module often has its own name space for identifiers so the same identifier may be used to mean different things in different modules.
2. component
http://encyclopedia2.thefreedictionary.com/component
One element of a larger system. A hardware component can be a device as small as a transistor or as large as a disk drive as long as it is part of a larger system. Software components are routines or modules within a larger system.
3. plugin (addon)
Plugins are tools to extend the functionality of a system.
4. object
Everything is object.
搞不懂的時候就是問自己一些問題:
1. Interchangeable unit?
2. Interface?
3. Self-contained? (independent or dependent?)
沒有留言:
張貼留言