News for hackers. Stuff that matters.
Re:What I Like About PHP by fake-name on Tuesday December 09, 2014 @07:49PM (#8726937)
Wait, wait, the PHP documentation is GOOD? Wat?

I mean, it's certainly extensive, but it's rife with the worst programming practices, and extremely bad/unsafe examples.

Re:What I Like About PHP by blubbi2 on Tuesday December 09, 2014 @07:57PM (#8726974)
Although I think that PHP is certainly not the best language in the world and it's pretty easy to write unsafe code in it, I don't think that's true.

I agree that PHP tends to trick you into writing unsafe code, but I generally don't agree that their documentation is full of unsafe examples (not anymore at least).

Can you name an example that proofs your point?

Re:What I Like About PHP by k__ on Tuesday December 09, 2014 @07:53PM (#8726958)
lol, yes.

The best thing are the comments in the docs of people telling you how wrong the docs are.

Re:What I Like About PHP by wanderr on Tuesday December 09, 2014 @08:17PM (#8727090)
No seriously, that is actually one of the best things. The comments on PHP docs are far more informative than the actual documentation for many other languages. Most everywhere else the caveats are simply left up to the developer to discover the hard way.
Re:What I Like About PHP by k__ on Tuesday December 09, 2014 @08:50PM (#8727224)
They saved my ass plenty of times, but I wouldn't count them to the quality of the docs.