aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes (Ajax) and ECMA script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "(Ajax) and ECMA script" Watch "(Ajax) and ECMA script" New topic
Author

(Ajax) and ECMA script

John Redden
Greenhorn

Joined: Oct 17, 2005
Posts: 2
I have been following Ajax with interest. A few years ago I attempted to build a library of Objects using JavaScript with its "prototype" idiom for OOP. I gave it up after not really getting the results I wanted. What I have run into is a lot of "procedural code" written with many flags, switches, ifs and the like in typical ECMA scripting.

Now that it looks like a monitoring system will be running on the browser, what are the best practices for robust ECMA scripting? How do you implement "high cohesion" and "low coupling"? Can we expect some type of accepted frame work in the ECMA script?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61433
    
  67

A few years ago I attempted to build a library of Objects using JavaScript with its "prototype" idiom for OOP.


I don't know why you gave up on this approach. I've used it for years with good results.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
John Redden
Greenhorn

Joined: Oct 17, 2005
Posts: 2
I think is was a combination of things. Venkman didn't exist yet. I only had one license for MS Visual Studio, which I used as the debugger. I became frustrated with the differences between the implementation by the various vendors.

Those objects I did develop, I used over and over again, especially a Calendar Control (Widget or what have you ...) that could be instantiated.
Also much of my time was spent developing Java web based apps so I was more a middle and DB tier guy at the time.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
John,

You should take a look at http://prototype.conio.net/

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: (Ajax) and ECMA script