o.O 有朋自远方来, 不亦乐乎 o.O
久久令人回味的开幕式, 更加期待闭幕式啊, 这种开幕式的场面没有几个国家可以做的出来.
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:
Ha, really enjoy writing blog entry in English now, so much faster than written in Chinese, or it just imply my Chinese PingYing sucks?

so since long time ago, I already realized the different between include_once and require _once function in PHP language, which is require will halt the process and report error immediately , and include_once will continue process.

As well as I being told in many articles that use require on unconditional import, and use include on conditional import, which this is also a standard coding style in PHP Pear and Pecl repository.

So what is the real difference on using "include_once" and "require_once", or by meaning of "uncondictional" or "conditional" import, Here is some of my thoughts: unconditional import are usually used by the developer which needs to be there. and use "conditional" import to deal with dynamical generated code, such as "template", "user style", which the user generate, and they could make mistakes, and should be ignored, and mistakes by developer is not allowed, so use "require_once" to enable the strict standard.

^.^  , the (^ Not) regular expression still bother me, will figure it out soon, I hope, and write a entry about it.
Tags:
Facebook has chat application launched, Not yet seen, check them out now. When you log in, you will see the pop up notification.

I just recently known there is a technology call Comet on the server side. which is really incredible. So what it basically does is: it is able to push the data to client side (browser) when there is update, which means you dont have to refresh the page to see the update or so. My guess is the facebook implements some kind of server technology like this to get their chat application running.

And as mentioned by the article in Wikipedia I gave the link above (UP THERE), it needs a lot of servers to make them works smoothly especailly for a busy site like Facebook. Ha, seems Facebook are working hard to push the possibility to the limit.

As I mentioned in last article I wrote, developer position will become more difficult to get, but I think it over, if we focus on the technology, and keep pushing the technology to the threshold, which in turn will require other business to keep up with the tech. and so, it creates the needs for more developers.

So it is just your choice of being a good or bad programmer, as well as having wonderful or stressful career. I think it applies to every kind of industry. Focus on what you doing, and keep doing it the best, I suggest.


It is been a few days since Google App Engine released by Google Inc. After the Amazon Web Service, Google also offer their platform for developer for them to build application on top of their infrastructure. So what is the god damn effect on the industry and the world, Not known yet.

Here are some of my opinions:

1. The Platform As A Service model will definitely take the market share of all these hosting company, and those company such as 1and1, godaddy etc should have some difficult time to pass by, And It will reflect on their employees as well.

2. It seem the web technology are growing so fast that less people needed to do something really advanced that requires a lot of people before. The youtube, flickr team were only consist of around 10 people. The effect: It is becoming very competitive for developer to find the top notch job, And you need to master very good knowledge to survive, However, It only make technology growing faster and faster.

3. What happen if all the website are hosted under Google and Amazon, and later Microsoft LOL. The effect: only a few amount of companies run the world wide web.

p.s. just some thoughts
分页: 1/5 第一页 1 2 3 4 5 下页 最后页 [ 显示模式: 摘要 | 列表 ]