开发者

javascript: Which is the powerful Javascript - Framework to fulfill my needs [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 12 years ago.

I am building an application which uses Following features in it.

  1. Popup Window
  2. Transition effects.
  3. Heavy contents in popup Window(like thousands of tags).
  4. Pipelining for client server communication.(like BigPipe in Facebook)
  5. Faster to switch between pages.

In this case,

Is Prototype more superior than mootools?

Is there any other more p开发者_如何学JAVAowerfull frameworks i should use to build the application?


None of these features are delivered out of the box in Prototype, jQuery or MooTools.

For app development, consider to use OOP and build modular components. This maybe easier in frameworks that provide OOP structures including Events and Options like MooTools does but it also not impossible in Frameworks without OOP, like jQuery. You would plug in stand-alone Class inheritance and create your own modular namespaces. You and your team just need to be more strict, otherwise its easy to end up in a stack of chained spaghetti code.

One of the downside in non-OOP frameworks is, that you can not extend/inherit existing framework code to plug in your own solution. jQuery provides a huge UI library, with varying quality of code; but you will be mostly stuck with options, events and features those plugins provide out of the box, unable to extend or reuse their internals.

OOP frameworks support the roll-your-own idea, helping with a lot of modules; while jQuery developers tend to just-solve-the-problem … by including a lot of different UI plugins.

Strong OOP framework with modular dependencies: MooTools, Dojo, YUI, Closure Library.


http://jquery.com/ jQuery is another good framework. They all have similar features. Pick the one that pleases you most or has readily available plugins for the features you need.


I second digitalrald's sentiment. Changing your library isn't going to magically fix slow code. I recommend running through some of these common optimizations after you have properly profiled your application and can pin-point which methods and lookups are slowing you down the most:

http://wiki.forum.nokia.com/index.php/JavaScript_Performance_Best_Practices

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜