【争议】PHP很烂,但是它依然流行


PHP与MYSQL 5程序设计(第2版)
【图灵图书推荐】 PHP与MYSQL 5程序设计(第2版)——PHP新圣经


著名技术博客 CodingHorror(出自《代码大全》一书中的小图标)的博主Jeff Atwood一直活跃得紧。最近刚和Joel Spolsky合建了一家创新咨询公司,好像是程序员培训方面的。当然,写blog的中心任务也不能放。他抛出使自己多年前惊得咋舌的PHP函数列表,就看a打头的吧:

abs()
acos()
acosh()
addcslashes()
addslashes()
aggregate()
aggregate_info()
aggregate_methods()
aggregate_methods_by_list()
aggregate_methods_by_regexp()
aggregate_properties()
aggregate_properties_by_list()
aggregate_properties_by_regexp()
aggregation_info()
apache_child_terminate()
apache_get_modules()
apache_get_version()
apache_getenv()
apache_lookup_uri()
apache_note()
apache_request_headers()
apache_reset_timeout()
apache_response_headers()
apache_setenv()
apc_add()
apc_cache_info()
apc_clear_cache()
apc_compile_file()
apc_define_constants()
apc_delete()
apc_fetch()
apc_load_constants()
apc_sma_info()
apc_store()
apd_breakpoint()
apd_callstack()
apd_clunk()
apd_continue()
apd_croak()
apd_dump_function_table()
apd_dump_persistent_resources()
apd_dump_regular_resources()
apd_echo()
apd_get_active_symbols()
apd_set_pprof_trace()
apd_set_session()
apd_set_session_trace()
apd_set_socket_session_trace()
array()
array_change_key_case()
array_chunk()
array_combine()
array_count_values()
array_diff()
array_diff_assoc()
array_diff_key()
array_diff_uassoc()
array_diff_ukey()
array_fill()
array_fill_keys()
array_filter()
array_flip()
array_intersect()
array_intersect_assoc()
array_intersect_key()
array_intersect_uassoc()
array_intersect_ukey()
array_key_exists()
array_keys()
array_map()
array_merge()
array_merge_recursive()
array_multisort()
array_pad()
array_pop()
array_product()
array_push()
array_rand()
array_reduce()
array_reverse()
array_search()
array_shift()
array_slice()
array_splice()
array_sum()
array_udiff()
array_udiff_assoc()
array_udiff_uassoc()
array_uintersect()
array_uintersect_assoc()
array_uintersect_uassoc()
array_unique()
array_unshift()
array_values()
array_walk()
array_walk_recursive()
ArrayIterator::current()
ArrayIterator::key()
ArrayIterator::next()
ArrayIterator::rewind()
ArrayIterator::seek()
ArrayIterator::valid()
ArrayObject::__construct()
ArrayObject::append()
ArrayObject::count()
ArrayObject::getIterator()
ArrayObject::offsetExists()
ArrayObject::offsetGet()
ArrayObject::offsetSet()
ArrayObject::offsetUnset()
arsort()
ascii2ebcdic()
asin()
asinh()
asort()
aspell_check()
aspell_check_raw()
aspell_new()
aspell_suggest()
assert()
assert_options()
atan()
atan2()
atanh()

呵呵,看上去真是够烂的。而且多年过去了,情况似乎一点也没有改变。

其实说PHP烂已经有多年历史了。 Google搜索结果一坨坨的。XML顶尖专家Tim Bray就曾经送给PHP一堆雅号:messy, unmaintainable crap,Spaghetti SQL wrapped in spaghetti PHP wrapped in spaghetti HTML……

虽然PHP似乎的确很烂,但是这一点也没有妨碍它的流行。 TIOBE编程语言指标中,PHP稳居前五,在Web开发语言中是老大,甚至压过了C++。而且,TIOBE这个网站就是PHP写的。还有人见人爱的Wikipedia,PHP写的。著名的Digg,PHP写的。Wordpress,PHP写的。Facebook,PHP写的。甚至YouTube本来也是PHP写的,只不过Google有Guido啊,改成Python啦。

这里还有一个比较,数据来自indeed.com网站:


Jeff Atwood最后总结:只能说明,即使是开发重要的应用,用什么语言也并不那么重要。
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值