php - Optimising strategies for web app development -


many web apps out there these days using apis or code they've not worked themselves, , quite using inefficiently. google maps mashups come mind.

with php/asp backends, html, javascript (especially ajax these days) - there many potential bottlenecks, problems, inefficiencies , double-ups.

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

a open ended , expansive question- may more productive compartmentalise each area opposed looking @ bigger picture, can overwhelming. 1 important aspect has impact on mention correctly auditing, analysing , debugging code, of tools below can this:

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

for php specific development,look at:

php code sniffer

php ast

php sat

php depend

php lint

php call graph

xdebug

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

for client side debugging, at:

jslint

firebug

yslow

opera - dragonfly

webkit (safari / chrome browsers) - web inspector

ie - microsoft script debugger

for 'slow downs' caching, either using

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

etags

.htaccess gzipping, here

php memcaching

you can use:

css sprites

reduced http requests

minified css , js

these tools aside, important note ability produce great code whole (your entire app) dependant on third party apis rely on, , require (your code). more not constricted choice of apis (you have limited ability change source) , notably combination of apis choose. core focus should analysis of own coding layer, adhering of guidelines each api can...easier said done.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -