so we have been talking/hearing about Object Oriented Programming for long long time.

I have never been able to come up with the idea to OOP the controllers, how can it possible to do OOP on controller, you have to use if else statement to determine what action to take, but Zend Framework use Front Controller Pattern to make controller OOP, great structure, and great seperation of code.
象sohu.com, 163.com, qidian.com, qq.com 等大型网站全部采用黑白底色的模板, 来纪念这次地震带来的影响, 中国所有大型游戏, 视频等娱乐网站全部暂停运行。
After reading all these article and seeing all the pictures of the damages to China by May 12nd Earthquake, I feel so bad for what It bring to China.

Nothing much to say, just cherish every moment of your life, and God bless China, best wishes to All Chinese.

PHP Comet Trial

2008/05/15 10:17 joedarkangel3
I tried to implement Comet application for the first time.

Dont know what is Comet , read my post on http://www.chendaping.info/post/39.htm

After serveral trials , here are some outcome by using server side long polling and client side long polling

Server Side Long polling: I use while(true) loop to keep connection alive, which in result use hugh resource, only two simutanous clients make server spike to 100%, so give applicaiton a break, do some sleep for the long running implementation.

Client Side Long Polling: I still use while loop on Javascript, but It turns out to be pretty well adjust to the client number, 10 simutanous client only use about 60% resource, I think It is because the connection setup give application a break.

the conclusion would be: give some break to long running application, never tie up all resource use while(true) infinite loop.

One more thought would be: Java multithreading model would come to play a big role on Comet application, However, I dont really a fan of Java.
I have been doing web developerment for quite a while. In different programming language, there are Model View Control Concept inside them. as well as Web, here comes MVC -> Model-Html, Xml, JSON : View-CSS, Control-Javascript.

So as many programming language best practice suggested, It is best to follow MVC pattern, and seperate them as much as possible, and here comes unobtrusive Javascript, and seperation of HTML and CSS.

The current popularity of AJAX is great example of using XMLHttp and some event model. event model has capturing, bubbleing state etc. very important to all these fancy effect created without using any flash. I think It probably reduce the file size a bit, and still very fancy and useful, especially for the sake of User Experience.

One Thing I notice on FIrefox is that It support global Error Handling, onError method, that is probably the method Firebug plugin based on, great method, And IE really need to implement such method, otherwise, Firefox could be the only developing choice for programmer, and everytime, It would be like just use IE to check if it works to meet the rest of large population.

Javascript imporve user experience a lot when use with AJAX, and easily help solved the limitation of flash. That is probably why Adobe come out with Spry Framework to compete on javascript market when AJAX become popular.
Tags:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]