日度归档:2013-08-17 周六

It is not often that you can write a PHP script that does not need to include the contents of different files as part of it’s output. If these includes happen to be php scripts themselves you have no choice but to use require or include. However more often than not, the contents are static, usually html template component. With static includes you have many more options available. aerwear We will analyse some of these functions to find out which one is most suitable when dealing with files with static content. We use the term function loosely, because require and include are not real functions but language constructs. 继续阅读 PHP各种读取文件的函数效率对比

虚假同感偏差(false consensus bias)
虚假同感偏差又叫“虚假一致性偏差”,指的是人们常常会高估或夸大自己的信念、判断及行为的普遍性。当遇到与此相冲突的信息时,这种偏差使人坚持自己的社会知觉。 继续阅读 关于“虚假同感偏差”

有两种极端原型的程序员——“禅宗的程序员”,我们称为心如止水的程序员,还有“不能克制分心的程序员”,我们称为心绪不定的程序员。两者都是非常 极端的,所以他们应该处于贝尔钟形曲线的两端,对吗?错。实际上,心绪不定的程序员是难以置信地普遍存在着。图片的效果要比文字有用,所以我现在用图片来 说明两种程序员的精神世界的状态。 继续阅读 心如止水的程序员

《送东阳马生序》[明·宋濂]

宋濂(1310—1381)字景濂,号潜溪,别号玄真子、玄真道士、玄真遁(dùn)叟(sǒu)。汉族,浦江人,元末明初文学家,曾被明太祖朱元璋誉为“开国文臣之首”,学者称太史公。宋濂与高启、刘基并称为“明初诗文三大家”。他因长孙宋慎牵连胡惟庸党案而被流放茂州,途中病死于夔(kuí)州。 继续阅读 《送东阳马生序》[明·宋濂]