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.
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.
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
花了3天时间, 作了一个facebook的应用程序, 不是很复杂的程序, 就是简单的日常记事本, 来记录每天你想要记录的事情,本来是打算开发来给自己的blog用到, 后来想一下, 还是可以用它来试一下facebook platform。
总体来说, facebook platform是很不错的, 就是一个强大的PHP framework, 但是跟许多framework, 对开发者的flexibility控制的比较严格, 毕竟涉及到安全问题, 也不能怪facebook, 经过这几天的实践,觉得还是不要用太多framework的比较好,个人不喜欢被限制, 但是有一点就是自己写的东西很多时候都不是那么完美, 毕竟没有facebook那样经过这么多开发者的测试,anyway, 个人觉得开发facebook程序不值得推荐, facebook程序大多数是用来玩的, 没有什么真正有用的程序。
footprint程序连接: http://apps.facebook.com/footprint-zuji/
截图:
1。 服务端的配置和优化 (大纲, 不包含细节)
Squid Proxy Server (这个好像是细节)
所谓程序服务端,也就是程序所在的主机。 当用户使用浏览器(IE, Firefox)来读取你网站的网页的时候, 你的程序服务器就开始工作了, 程序服务器就要对这个网页进行编译, 从MYSQL读取数据, 然后把HTML文件发给你的浏览器来读。 当别人的浏览器也读取这个网页的时候, 程序服务端又要对同一个网页进行处理后返回HTML, 如果网页的内容是一样的话,而在同一时间内有大量相同的请求的话, 就浪费了大量的CPU来进行编译, 我们可以使用Squid Proxy Server对文件进行缓存, 这样不仅减轻程序服务端的负担, 也可以使用户更快的浏览页面。
服务器群组
尽管有Squid的帮助, 一个程序服务器很容易就达到了它的瓶颈(普通的程序服务器在同时处理100个请求的时候就已经非常的吃力了), 这时候就需要加入更多的程序服务器进行分担, 每个程序服务器上都含有一样的程序。 在ALEXA前10名的网站的服务器都是以万计的。 这样每当用户向程序服务端要求网页的时候, 就会被平均的分配到所有的服务器上。进行平均分配可以通过不同的方法来实现, 有Layer 4 , Layer 7 , 和Round robin DNS等等。
MYSQL 群组
I can only use English to write diary now, no language support text input is enable now ( I dont know how to at this time), graphic is fantastic even without install my G-force 7800 driver, It is already very smooth, but I will figure it out how to install my driver later on.
One bad thing about this system is that the wireless is work worse than windows XP, even though XP is not very well either, but Ubuntu is still not very good at supporting hardwares, or the other way around, hardware doesnt support Linux well yet.
It is a bit laggy when switch workplace, I think I really need install graphic driver anyway. There are so much more option you can do to control the looking and feel of the operating system. even the most trivial thing, like orientation of every part.
Before really make my mind to use Linux, I never know there are so many cool application you can use for free, the best thing about open source. and by using this system, I can concentrate myself on using the computer as a tool instead of entertaining system, gaming and entertainment is not very well support under Linux. (may be I am wrong with the entertainment part).
let me talk about the experience of using Ubuntu following days, really cool for me right now.
通过PHPExcel也接触了其他好的库, 也就Java和PHP作了一下比较:
个人认为PHP和Java各有个的优点
1。 PHP社区强大, 而且PHP的软件%80以上是开源加上可以用于商业用途, 而Java的开源程序很少, 就是有, 也大多不可以拿来修改来作为自己用。





2008/04/24 11:42 

