我无法理解为什么PHP如此受欢迎。与Java相比,PHP代码看起来很糟糕。 [英] I couldn't understand why PHP is so popular. The PHP code looks sohorrible compared with Java.

查看:94
本文介绍了我无法理解为什么PHP如此受欢迎。与Java相比,PHP代码看起来很糟糕。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能忍受可怕的PHP代码吗?

Could you put up with the horrible PHP code?

推荐答案

因为你已经在comp.lang.java.programmer中承认了(是吗?

任何愿意帮助我的网络程序员...)


我编程很差。

你到底知道什么。
Since you have already admitted in comp.lang.java.programmer (Is there
any web programmer who is willing to help me...)

"I''m poor at programming."
What the hell would you know.


2008年4月29日星期二08:00:47 + 0200,tenxian< hi ******* ***@gmail.com写道:
On Tue, 29 Apr 2008 08:00:47 +0200, tenxian <hi**********@gmail.comwrote:

你能忍受可怕的PHP代码吗?
Could you put up with the horrible PHP code?



没有偏离现场,这就是我们读这个小组的原因。

为了比较,这里有一些Perl:

#!/ usr / bin / perl -l <​​br />
s - @ {[(gE ^ Ge)=〜/ [^ g ^ e] / g ]} [g ^ e] x((!! + ~~ g ^ e ^ g ^ e)<< pop)。!gE-ge,

s - [^ ge ^ ge ] -s ,,,, S,@ {[(G ^ ''; '')( '?' E ^ '')]},(G ^ ''/ '')(E ^ '' | '')^ Ge,ge,

print,s,(?< = / [^ g ^ e])[^ g ^ e] [^ g ^ e],

No offcourse not, that''s why we read this group.

For comparison, here''s some Perl:
#!/usr/bin/perl -l
s--@{[(gE^Ge)=~/[^g^e]/g]}[g^e]x((!!+~~g^e^g^e)<<pop).!gE-ge,
s-[^ge^ge]-s,,,,s,@{[(g^'';'').(e^''?'')]},(G^''/'').(E^''|'')^Ge,ge,
print,s,(?<=/[^g^e])[^g^e][^g^e],


& ^(G ^''/'')。(E ^''|'')^ gE,ge-ge

-

Rik Wasmus
&^(G^''/'').(E^''|'')^gE,ge-ge
--
Rik Wasmus


这篇关于我无法理解为什么PHP如此受欢迎。与Java相比,PHP代码看起来很糟糕。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆