Optimising strategies for web app development

Many web apps out there these days are using APIs or code that they've not worked with themselves, and quite often are using it inefficiently. Some google maps mashups come to mind.

With php/asp backends, HTML, javascript (especially with all the AJAX these days) - there are so many potential bottlenecks, problems, inefficiencies and double-ups.

What strategies can you suggest to investigating, identifying and resolving slow-downs, redundant code, leaks and other issues in web-apps - both server-side and in the browsesr on client-side?


A very open ended and expansive question- it may be more productive to compartmentalise each area as opposed to looking at the bigger picture, which can be overwhelming. One very important aspect which has an impact on everything you mention is correctly auditing, analysing and debugging your code, some of the tools below can help with this:

[...]investigating, identifying and resolving slow-downs, redundant code, leaks and other issues in web-apps - both server-side[...]

For PHP specific development,Look at:

PHP Code Sniffer



PHP Depend

PHP Lint

PHP Call Graph


[...]and in the browsesr on client-side?

For client side debugging, look at:




Opera - Dragonfly

WebKit (Safari / Chrome Browsers) - Web Inspector

IE - Microsoft script Debugger

For help with 'slow downs' look into caching, either using

ob_start (eg. ob_start('ob_gzhandler'); ) and ob_end_flush


.htaccess Gzipping, also here

PHP Memcaching

You can also use:

CSS Sprites

Reduced HTTP requests

Minified CSS and JS

These tools aside, what it is VERY important to note is that your ability to produce great code as a whole (your entire app) is dependant on what third party APIs you rely on, and what you yourself require (your code). More often than not you will always be constricted by your choice of APIs (you have a limited ability to change their source) and notably the combination of APIs you choose. Your core focus should be the analysis of your own coding layer, adhering to as much of the guidelines for each API as you can...easier said than done.

Need Your Help

Page curl on top right corner of UIView / UIViewController

ios animation uiview uiviewcontroller page-curl

I am looking to do a partial page curl (but will settle for a full page curl) that starts in the top right corner.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.