473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How would the relationship between an object and its prototype be depicted...

Ray
in UML? I just found that UML is actually very class-based. It's
difficult to depict the relationship between a constructor function,
its prototype property, and objects that are created using that
constructor function using UML.

Have any of you ever attempted this? How would you do it?

Thanks,
Ray

Jan 18 '07 #1
4 1456

Ray wrote:
in UML? I just found that UML is actually very class-based. It's
difficult to depict the relationship between a constructor function,
its prototype property, and objects that are created using that
constructor function using UML.

Have any of you ever attempted this? How would you do it?

Douglas Crockford depicts objects visually many times in the first of
these three videos

<URL: http://yuiblog.com/blog/2006/11/27/video-crockford-advjs/>

Don't know if that is formal UML or not but I have a feeling it isn't.
Perhaps it will give you some ideas.

Peter

Jan 18 '07 #2
Ray
Peter Michaux wrote:
Douglas Crockford depicts objects visually many times in the first of
these three videos

<URL: http://yuiblog.com/blog/2006/11/27/video-crockford-advjs/>

Don't know if that is formal UML or not but I have a feeling it isn't.
Perhaps it will give you some ideas.
Many thanks, Peter!
Peter
Jan 18 '07 #3
Ray wrote:
in UML? I just found that UML is actually very class-based. It's
difficult to depict the relationship between a constructor function,
its prototype property, and objects that are created using that
constructor function using UML.

Have any of you ever attempted this? How would you do it?
I thought UML was for modelling logic and processes in a way that is
independent of the programming language that might be used to implement
them.

You might be interested in using it to depict prototype inheritance if
you are using UML to model javascript itself, otherwise it makes no
sense to me.
--
Rob

Jan 18 '07 #4
Ray
RobG wrote:
I thought UML was for modelling logic and processes in a way that is
independent of the programming language that might be used to implement
them.

You might be interested in using it to depict prototype inheritance if
you are using UML to model javascript itself, otherwise it makes no
sense to me.
Hi Rob,

Yes, indeed, you are correct. I am modeling JavaScript itself, wrt its
mechanism for prototype-based OOP.

Thanks,
Ray
>

--
Rob
Jan 19 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin | last post by:
I'd like to be able to get the name of an object instance from within a call to a method of that same object. Is this at all possible? The example below works by passing in the name of the object...
2
by: Richard Trahan | last post by:
In the 1.5 Guide, Chapter 8 (Details of the Object Model), last sentence: "The dennis object does not inherit this new property". I don't understand why this is so. A few pages earlier, it says...
7
by: Florian Loitsch | last post by:
hi, in section 10.1.8 (Arguments Object) it is stated that the "internal ] property of the arguments object is the orginal Object prototype object, the one that is the *initial* value of...
4
by: Luke Matuszewski | last post by:
Here are some questions that i am interested about and wanted to here an explanation/discussion: 1. (general) Is the objectness in JavaScript was supported from the very first version of it (in...
11
by: Kevin Prichard | last post by:
Hi all, I've recently been following the object-oriented techiques discussed here and have been testing them for use in a web application. There is problem that I'd like to discuss with you...
15
by: Sam Kong | last post by:
Hello! I got recently intrigued with JavaScript's prototype-based object-orientation. However, I still don't understand the mechanism clearly. What's the difference between the following...
3
by: jacobstr | last post by:
I've noticed Object.extend used in a few different ways and I'm having trouble distinguishing why certain usages apply to a given situation. On line 804 Ajax.Base is defined as follows: ...
14
by: julie.siebel | last post by:
I've been wrestling with a really complex page. All the data is drawn down via SQL, the page is built via VBScript, and then controlled through javascript. It's a page for a travel company that...
23
Frinavale
by: Frinavale | last post by:
JavaScript is a very strange place for me... So, I decided that, before I attempt to create an Object, I should first learn about Objects. I had actually created one before with the help of a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.