• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

(Ajax) and ECMA script

 
John Redden
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John Redden
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John,

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

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic