Optimizing Ajax Based Applications

优化基于Ajax的应用程序

原文地址:http://www.ajaxwith.com/Optimizing-Ajax-Based-Applications.html

Ajax is all about speed and interactivity. Without these features, using Ajax for building a specific application or website is just useless.

Ajax完全在于速度和交互性。如果没有这些特性,用Ajax来构建特定的应用或者网站是毫无用处的。

Developers have to ensure that they build applications that will cater to the immediate need of their users. They have to optimize their application before releasing them even for beta testing.

开发这应该确保他们的应用程序能够迎合用户的直接需求。他们必须在发布之前优化他们的应用程序,甚至只是发布Beta测试。

Optimizing the Application Prematurely

过早地优化应用程序

Premature optimization may seem to be a safe practice in ensuring that the application will work as expected. But this, however, is the cause of almost any problem in an Ajax based applications when it comes to optimization.

过早的优化似乎四个安全的做法,可以确保应用程序如期工作。但是,当开始优化基于Ajax的应用程序时,这几乎是所有问题的起因。

Premature optimization will require developers to examine the functions of the application piece by piece and optimize them before they are brought together as a fully functional application.

过早的优化将需要开发者一点一点地审查这个应用程序的功能,并在组合他们成为一个全功能的应用程序之前优化它们。

This may seem to look good but it will only create confusion in finishing the application. Optimizing the application prematurely will require certain functions to be expanded which could complicate the function. Other functions will have to be updated and the application may not be finished.

这可能看起来不错,但是这只会在完成应用程序的过程中造成混乱。过早地优化应用程序要求扩展一些函数,而这会让这些函数更加复杂。其他的函数这需要更新,从而让这个应用程序可能无法完成。

Optimization has to be based on the application as a whole and not just piece by piece. The application has to be completely built before any changes have to be made in the Ajax based application.

优化需要把整个应用程序看成一个整体,而不是一块一块的。当需要改变基于Ajax应用程序时,应该完成应用程序的构建。

The developer has to be backed by a system or even just a philosophy on how to effectively build an application and eventually optimize it for better performance.

开发者必须支持这样一个系统甚至只是一个理念:怎样高效地构建应用程序并最终对其进行性能优化。

Order of Development

开发次序

Performance optimization does not mean the development stage should be left behind. While developing the application, developers should consider the functionality and optimization of the application before they are actually coded.

性能优化并不意味着开发舞台应该抛在脑后。当开发应用程序的时候,开发者应该在实际编码之前考虑应用程序的功能性和最优化。

Optimizing each function after they have been developed is a bad move because it will just complicate things before further development and will cause future problems.

在开发完成之后优化每一个函数,这是一个糟糕的举动,因为这只会使得东西在后期开发时更复杂,并且会导致新的问题。

By creating an order of development, the application will be smoothly developed and optimization could be done after the application is done.

通过建议一个开发次序,平稳地开发应用程序,然后在完成之后对其进行优化。

Scalability

可伸缩性

This feature should be considered by developers if they are aiming to build a very powerful application. Scalability would mean that the application will have the same performance after optimization and different updates.

如果要建议一个非常强大的应用程序,开发者应该考虑这个特性。可伸缩性意味着当应用程序优化和不同更新后应该有同样的性能。

This is very challenging for developers since they will be required to be vigilant on the different trends in application development.

这对开发者来说一个很大的挑战,因为他们需要在应用程序开发过程中对不同趋势非常警惕。

More often than not, they should ensure that the Ajax based application will be able to receive constant updates from developers and even additional plug-ins and future APIs.

更多的不是这样的,他们应该确保这些基于Ajax的应用能够从开发者和额外的插件以及未来的API获取连续不断的更新。

Scalability could be attained if the developer is aware of the functions they are developing would be eventually upgraded.

如果开发者意识到他们正在开发的功能最后可能需要升级,可扩展性就达到了。

A technique in ensuring proper reception of the function for updates is to develop a prototype for testing. This way, developers should test the ability of the application to receive further updates.

为保证功能能够适当地接受更新,一种技术手段就是开发一个测试原型。在这种方式中,开发者应该测试这个应用程序接受后期更新的能力。

Ajax should perform above and beyond expectation. This is a very big challenge to developers especially that Ajax is constantly changing. By following a system for optimization, developers could improve their application without complicating smaller functions.

Ajax执行上面说提到的并超出预期。这对开发者来说是一个非常大的挑战,尤其是需要不断变化的Ajax。在优化系统的过程中,开发者应该在不让小功能变得复杂的情况下改进应用程序。

Scalability should also be considered as a highly scalable application will be able to change and adopt based on the needs of users.

可扩展性也应该考虑到,可因为一个可高度扩展的应用程序要能够做出改变并通过基于用户的需求。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.