PHP Apprentice – An online, open-source book for learning PHP
41–50 of 75 posts
Re: PHP Apprentice – An online, open-source book for learning PHP
#42I haven't used PHP in around 6 years (running PHP 4 I belive); has the language improved ? My biggest complaint was that the API was incredibly inconsistent, but that seemed like it could be improved in later versions if they weren't afraid of breaking backwards compatibility.
Re: PHP Apprentice – An online, open-source book for learning PHP
#43I haven't used PHP in around 6 years (running PHP 4 I belive); has the language improved ? My biggest complaint was that the API was incredibly inconsistent, but that seemed like it could be improved in later versions if they weren't afraid of breaking backwards compatibility.
Re: PHP Apprentice – An online, open-source book for learning PHP
#44I haven't used PHP in around 6 years (running PHP 4 I belive); has the language improved ? My biggest complaint was that the API was incredibly inconsistent, but that seemed like it could be improved in later versions if they weren't afraid of breaking backwards compatibility.
Re: PHP Apprentice – An online, open-source book for learning PHP
#45I haven't used PHP in around 6 years (running PHP 4 I belive); has the language improved ? My biggest complaint was that the API was incredibly inconsistent, but that seemed like it could be improved in later versions if they weren't afraid of breaking backwards compatibility.
class A {
public int $id = 0;
public ?Foo $somefoo;
}
The language has evolved slowly but surely, and it's now much harder to make obvious mistakes thanks to a bunch of good-quality static analysis tools (one of which I authored).Re: PHP Apprentice – An online, open-source book for learning PHP
#46Earlier quoted context omitted.
Everything is political. I wouldn't want people to downvote Mercurial links into oblivion. Anyway, Google links are pretty much already ordered by popularity.
That's the problem, in technical links popularity (as in number of visits) is not linked to correctness, that's one of the reasons StackOverflow is so useful, because the top-voted answer is like 99% of the times the most correct (useful) one.
Re: PHP Apprentice – An online, open-source book for learning PHP
#47I haven't used PHP in around 6 years (running PHP 4 I belive); has the language improved ? My biggest complaint was that the API was incredibly inconsistent, but that seemed like it could be improved in later versions if they weren't afraid of breaking backwards compatibility.
PHP 7+ is a totally different world from 4. It’s actually a real programming language now. The massive API redundancy is still there, but you have classes, namespacing, etc.
Re: PHP Apprentice – An online, open-source book for learning PHP
#48Earlier quoted context omitted.
That's the problem, in technical links popularity (as in number of visits) is not linked to correctness, that's one of the reasons StackOverflow is so useful, because the top-voted answer is like 99% of the times the most correct (useful) one.
Except when that answer is 5 years old and is as wrong as the ExpertsExchange post from 2001.
A nice big "this answer is outdated, see [other answer]" note does wonders.
Re: PHP Apprentice – An online, open-source book for learning PHP
#49Earlier quoted context omitted.
Except when that answer is 5 years old and is as wrong as the ExpertsExchange post from 2001.
Unlike EE, though, any user can propose an edit to that now-incorrect answer (or just edit it outright, if they have 2k rep). A nice big "this answer is outdated, see [other answer]" note does wonders.
This is particularly distressing in the case of security vulnerabilities. Vulnerable code being copied from Stack Overflow into consumer applications isn't hypothetical, it's been empirically demonstrated (https://www.aisec.fraunhofer.de/en/stackoverflow.html), yet the community and company refuse to accept responsibility and address the problem. (Of course the developer creating the application is more responsible, but Stack Overflow is in a position where they could help protect innocent end users and the common good.)
Pinning of accepted answers to the top of the list was a good idea when the site was young. These days, it prevents updated better answers from taking the place of ten-year-old misinformation.
Re: PHP Apprentice – An online, open-source book for learning PHP
#50I love PHP, it was my first “real” programming language, and I’m glad there are still people trying to make it easier to adopt. Having skimmed through several of these chapters, though, I just feel like it’s too similar to the official PHP docs, even down to the TOC. Wouldn’t it have been better for everyone to put this effort into improving the docs, rather than developing yet another book in a silo that likely won’…