Prototype Java Script Framework - Problems

Problems

Unlike other JavaScript libraries like jQuery, Prototype extends the DOM, but there are plans to change this in the next major version of the library.

In April 2010, blogger Juriy 'kangax' Zaytsev (of Prototype Core) described at length the problems that can follow from adding new methods and properties to the objects defined by the W3C DOM. These ideas echo thoughts published in March 2010 by Yahoo! developer Nicholas C. Zakas They have been summarised as follows

  • Cross browser issues: host objects have no rules, IE DOM is a mess, etc.
  • Chance of name collisions
  • Performance overheads

By 2008, specific issues with using DOM-extension methods in older versions of Prototype, combined with newer versions of current browsers, were already being documented. Rather than adding new methods and properties to pre-existing 'host' DOM objects such as Element, like element.hide, the solution to these issues is to provide wrapper objects around these host objects and implement the new methods on these. jQuery is such a wrapper object in the library of that name.

It is now widely expected that the majority of these ideas and issues will be addressed in the release of Prototype 2.0, but Prototype developers will have to learn to work with an altered syntax, and much existing Prototype code will become outdated.

Read more about this topic:  Prototype Java Script Framework

Famous quotes containing the word problems:

    Our [adult] children have an adult’s right to make their own choices and have the responsibility of living with the consequences. If we make their problems ours, they avoid that responsibility, and we are faced with problems we can’t and shouldn’t solve.
    Jane Adams (20th century)

    The problems of victory are more agreeable than the problems of defeat, but they are no less difficult.
    Winston Churchill (1874–1965)

    I respect guilt. It is a dangerous but sometimes useful beast. The guilt that made me want to solve all my children’s problems meant trouble. The guilt that made me question my role in our mother-daughter squabbles proved helpful. Yes, I care about my kids’ problems, and I long to make suggestions. But these days I wait for children to ask for help, and I give it sparingly. Some things can’t be fixed, and I tell them so.
    Susan Ferraro (20th century)