<OT>I am finishing TransModal 0.1 so planning to move it from alpha to
beta stage.<OT>
Besides that I am planning to write an introductory to inheritance
schema currently used in Javascript programming. It will not be a
manual of a "proper" way to use OOP inheritance but a compilation so a
description of _all_ OOP paradigms that had been used or are being
used in Javascript commercial solutions: starting from the prototype
inheritance of course and ending up by mutable constructors over
closure-based inheritance (whatever I would be personally thinking of
this twist of the mind).
I am experiencing some terminology problems while thinking how to
describe different types of instance methods. The problem lies in the
ambiguous nature of the term "static" in different programming
languages. For example, think of i) "static" in VB where it is a type
of method preserving its state between calls and ii) "static" in Java
where it is a method shared between all class instances - this is
leaving aside "static" usage in C++ and especially in C.
This way I am thinking of unambiguous terms to denote in application
to Javascript the following types of methods:
1) The proposed term: "shared stateless". Functional similarity to
"static" in Java.
The most common type we are getting in say:
2) The proposed term: "own stateless"
Being created as a separate entity for each object instance
3) The term I can think of: "own state preserving". Functional
similarity to "static" in VB.
Not convenient at all as a term but I would really like to avoid using
"static" word for above spelled reasons.
What would be the best terms to use? Are any types missing?
beta stage.<OT>
Besides that I am planning to write an introductory to inheritance
schema currently used in Javascript programming. It will not be a
manual of a "proper" way to use OOP inheritance but a compilation so a
description of _all_ OOP paradigms that had been used or are being
used in Javascript commercial solutions: starting from the prototype
inheritance of course and ending up by mutable constructors over
closure-based inheritance (whatever I would be personally thinking of
this twist of the mind).
I am experiencing some terminology problems while thinking how to
describe different types of instance methods. The problem lies in the
ambiguous nature of the term "static" in different programming
languages. For example, think of i) "static" in VB where it is a type
of method preserving its state between calls and ii) "static" in Java
where it is a method shared between all class instances - this is
leaving aside "static" usage in C++ and especially in C.
This way I am thinking of unambiguous terms to denote in application
to Javascript the following types of methods:
1) The proposed term: "shared stateless". Functional similarity to
"static" in Java.
The most common type we are getting in say:
Code:
MyObject.prototype.method = function() {...}
or
function MyObject() {
this.method = MyObject.method;
}
MyObject.method = function() {...}
Being created as a separate entity for each object instance
Code:
function MyObject() {
this.method = new Function(args, body);
}
similarity to "static" in VB.
Not convenient at all as a term but I would really like to avoid using
"static" word for above spelled reasons.
Code:
function outer() {
var myVar;
this.method = function() {...}
}
Comment