Comments (5)
I think it would be unwise to use "prototype" as a verb in this context.
I actually don’t like "subtype", but I’m at a loss for words. "create" in the sense of Object.create means to create an object that "inherits" "prototypically" from a given "prototype" and for convenience may extend the new object with some properties (or "prototypally", but why use a word that’s not in the dictionary when there’s a proper conjugation that serves the purpose). Creation is a tool for both "instantiation" and "deriving" new types and the issue of defining properties is orthogonal. It just happens that in Montage, we conventionally restrict ourselves to defining new properties when we "derive" new types.
The problem with "create" isn’t merely with terminology, but the need for terminology to distinguish proper usage, rather than distinguishing proper usage with syntax. See #37
from montage.
Agreed, prototype should not be used as a verb here.
from montage.
@kriskowal you can lead this thread
from montage.
- "prototype" (noun) as used in JavaScript, a prototype is an object that shares its interface through "prototypical inheritance". Both instances and types have prototypes.
- "create" (verb) to create a new prototype from a base prototype. Creation is used for both "type inheritance" and "instantiation".
- "(Montage) type" (noun) a prototype for the purpose of inheriting a common interface. Montage types are always defined by rich property descriptors which extend ES5 property descriptors but have slightly different defaults. Creating descriptors has some overhead, which is acceptable for types because they are never hot code.
- "instance" (noun) a prototype for the purpose of doing work. The properties of an instance have state which must not be shared by other objects. An instance must not be used as a type.
- "inherit" (verb) to create a new type, based on another type. Types can be used to create instances or types. Types should only have state if it is acceptable for all instances of that type and its descendant types to share that state. Shared state cannot be serialized.
- "instantiate" (verb) to create a new instance from a type.
- "initialize" (verb) to set up an initial, consistent state for instance. Objects that have been deserialized are not initialized: it’s assumed that they were serialized with a consistent internal state.
- "state" (noun) the owned properties of an instance. Some state can be serialized and deserialized.
from montage.
Please close.
from montage.
Related Issues (20)
- Components should automatically add their module id based conventioned CSS class name to the class attribute of their element
- the property _isTemplateInstantiated of Template doesn't reflect the reality.
- Remove deprecated multiSelect property from the range controller HOT 1
- DataService - Add ability to batch actions (create, update, delete)
- Implement Draggable/Droppable handling via getters & setters
- DataOrdering should be Ordering and in core
- MJSON objects are instantiated when the file is loaded, not required
- Redundant call to mapping.mapRawDataToObjectProperty if mapping result isn't a Promise HOT 1
- Add logic to a component that uses its serialization label as it's element's id to save manual writing
- DataService. _performAndDeleteOfflineOperation incorrectly null checks for offlineService and schema HOT 1
- Add Mutable Event pooling
- Remove Composers as public API and make them plugins to event manager
- Add default Component sandboxing of events coming from template's encapsulated DOM
- Add ability for Target to hosts it's own listeners
- core/extra/date is executed twice in running tests of a project relying on montage
- Add CSS custom properties client-side support for older browsers HOT 1
- Going from Main = Component.specialize(..) to class Main extends Component {} fails silently
- Can't ES6 import in a file eval-ed (by mr). Will require changes to evolve progressively
- PropertyDescriptor valueType = "enum" & enumValues =[...] doesn't use montage Enum
- clicking on a panel in a flow.info top left example right after releasing a drag block the panel to revert to the stable position it's supposed to go
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from montage.