News for hackers. Stuff that matters.
Re:Learn PHP – Free interactive PHP tutorial by meritt on Tuesday November 26, 2013 @09:34AM (#6801425)
> all library functions being in the global scope

Ever used C?

> lack of sane naming conventions for those things

Absolutely annoying but also fairly minimal. Mostly an issue in the string & array functions.

> terrible type conversions

Weak typing has to coerce somehow. Javascript is equally "terrible" at times.

> unsafe libraries

Such as? All the major libraries are thread-safe that I'm aware of

> starting php with every request

PHP exists outside of the web, and even in the web environment, you can run it as fastcgi since inception as a persistent daemon and php-fpm is the standard daemon now as well.

> being able to drop raw php right into html templates

I view that as a feature (which is often abused by beginners)

Re:Learn PHP – Free interactive PHP tutorial by mavroprovato on Tuesday November 26, 2013 @10:28AM (#6801829)
> > all library functions being in the global scope

> Ever used C?

Come on, this is not a good argument. C is a 70's language, we can do better than that, even in 1995 when PHP came out.

Re:Learn PHP – Free interactive PHP tutorial by leokun on Tuesday November 26, 2013 @11:06AM (#6802104)
By unsafe I meant insecure. Also with C you have to import headers.
Re:Learn PHP – Free interactive PHP tutorial by riquito on Tuesday November 26, 2013 @11:06AM (#6802108)
> Weak typing has to coerce somehow. Javascript is equally "terrible" at times.

>>> "0" == false true !!!!!!!

>>> "" == false true

>>> "" == "0" false

and here we lost the transitive relation...

Re:Learn PHP – Free interactive PHP tutorial by rmrfrmrf on Tuesday November 26, 2013 @11:59AM (#6802502)
Good. We didn't want it anyway!