Don’t trust this guy 11

I was reading through an article about Atlas at eWeek where they quote Russ Nemhauser, head of Nemhauser Media Inc.:


“JavaScript is not an object-oriented language. It does not have strong typing; there is no exception handling; and there is no inheritance. One of the biggest problems with the AJAX approach is the amount of time it takes writing and debugging all that code,”

I can agree that it does not have strong typing and that it is hard to debug (mostly because people lack the know how).

  • http://jking.dark-phantasy.com/ J. King

    Is there anywhere in particular where someone could pick up the necessary know-how?

  • http://erik.eae.net Erik Arvidsson

    One good start is to start using a real debugger like MSE or Venkman.

  • José Jeria

    Hm, you seem to be very careful in your opinions…

  • http://minghong.f2g.net/ minghong

    No exception handling? Simply try, catch and finally! Also, inheritance can be emulated by prototype coping (not that useful through).

  • http://erik.eae.net Erik Arvidsson

    José: Well, I just can’t go around flaming people all the time ;-)

    Minghong: Prototype inheritance is not an emulation of inheritance. Prototype based inheritance is just a different solution compared to class based inheritance. In general prototype based inheritance is more powerful but also a bit less robust.

    I dare say that JS is more object oriented than Java since in Java not everything is an object.

  • M. Schopman

    Well, we are people with a biased vision about JavaScript I can understand that, we love doing what we do. However, why do some some developers tend to develop a tunnel vision object object oriented methodologies.

    Every time this old can of sardines is opened, but in the meanwhile I see beautiful user centric applications being developed. All this work; Drag and drop, dynamically build menu’s, treeviews, information bars, dialogs, persistent data, and information retrieval without postbacks or entire redraws of the browser canvas have all been possible by developers with a passion for developing with JavaScript.

    Yes I think it would be nice to have strong typing, it provides possibilities to increase performance drastically. because this takes away the “reflection” part of looking up the type of an object. However this would take away the dynamic aspect of JavaScript. Yes I think it would be nice to have method overriding instead of validating the type of an argument, and yes I think it would be nice have native inheritance so we can actually use “super”.

    In the meanwhile, alot of the possibilities with Javascript are not utilized, people can do so much more with it but they have to realize that JavaScript is a true language, and one with a pretty high learning curve. Do get over that, a prototype.js will not help you.

  • http://alex.dojotoolkit.org Alex Russell

    The inaccuracies seem par for the article. The first sentence begins with: “Microsoft’s Atlas Asynchronous Java and XML development tool…”. Am I the only one surprised to find out that Ajax has anything to do with Java?

    I smell an article written on a deadline by an all-too-credulous reporter.

    Regards

  • Micha Schopman

    My problem with such articles is always that they are true, but not true at the same time :)

    Some quotes:

    “So wouldn’t it be nice if somebody could do all that for you?” he asked. “The answer is Atlas.”

    This is not true, Atlas provides building blocks, that is all

    Nemhauser said Atlas provides all the functionality of AJAX; it greatly reduces complexity; and it “brings true object-oriented development to the client.”

    How can one make an object oriented JavaScript. And complexity, well, all those additional faked namespaces help alot.

    “In addition, Atlas provides cross-browser compatibility, “so you’re not tied down to a single browser,” Nemhauser said. And it adds common client behaviors such as auto complete features, drag and drop capability, and pop ups, he said. ”

    And again building blocks. To deliver real full blown usable interfaces people should look beyond Atlas.

    ” Nemhauser, who said he got a start in development as a Visual Basic 3 developer, said before AJAX he did not believe Web applications could provide rich interfaces. ”

    From his early experience, “I missed all the processing you could do in Windows Forms apps,” he said, noting that he had thought “a powerful UI simply was not possible in a Web environment.”

    Well, nough said. If he did not believe that he must have totally missed web applications like Convea, and eRoom. I think the author if this article is just ignorant.

  • Ryan Warnick

    I must admit, I was one of those developers that thought Javascript was a toy language and not as capable as strongly typed languages like C/C++ and Java. Of course, that was before I really dug deep and tried to do something with it. I have discovered, as I am sure many would agree, that Javascript is an extremely powerful language if used properly. The trick is using it properly, which places more burden on the developer. In other words, it is easy to create a mess if you don’t know what you are doing and don’t develop and design with self-discipline. There are some things that I have done so simply and elegantly in Javascript that I could never have done in a strongly-typed language like Java.

  • http://j2s.sourceforge.net josson smith

    Go to http://j2s.sourceforge.net, it provides a converter which translates the Object Oriented Java codes into JavaScript.

  • d£cl@n2k6

    wat u up 2