talktosandy
New Member
w3schools is best way to learn php
I completely agree. It shows things in a very easy/basic way - you'll be able to understand and grasp PHP quickly.w3schools is best way to learn php
I have to disagree with your statement here.Might be construed as irrelevant to the question, but I'd suggest straying away from PHP. The core design of the language is severely flawed and despite their recent move to resolve some of these problems, what makes PHP PHP is also what makes PHP bad. The effort required to write "good" PHP could easily be applied to learning another language.
There are plenty of choices for doing web development efficiently nowadays. My first suggestions would be Python, Perl, or even Ruby. You can get into stranger and more obscure choices from there.
Umm.. sorry, but it kinda is. I could likely fill several pages with problems I've come across with PHP (problems with the language itself, mind you); but quite honestly so many people have done the same at this point that it's easier to reference existing lists. Such as this one: http://toykeeper.net/soapbox/php_problems/It's not the fact it's flawed,
Some sort of alcoholic beverage and google.comMy PHP skillset is heavily lacking. What's a good modern resource for producing clean and standard code?
Umm.. sorry, but it kinda is. I could likely fill several pages with problems I've come across with PHP (problems with the language itself, mind you); but quite honestly so many people have done the same at this point that it's easier to reference existing lists. Such as this one: http://toykeeper.net/soapbox/php_problems/
3.3, 5.2, 10, 17, and 20 from that list are my pet peeves, and why I stick to Perl and Python when possible.
That list is long obsolete. We have namespaces, exceptions, anonymous functions, decent oop etc. now. Magic quotes is disabled by default.Umm.. sorry, but it kinda is. I could likely fill several pages with problems I've come across with PHP (problems with the language itself, mind you); but quite honestly so many people have done the same at this point that it's easier to reference existing lists. Such as this one: http://toykeeper.net/soapbox/php_problems/
3.3, 5.2, 10, 17, and 20 from that list are my pet peeves, and why I stick to Perl and Python when possible.
..some of those flaws were present in early 5.x. That's not long obsolete.. and let's be honest. Even if PHP did have some miraculous overhaul since PHP4, that's taking WAY too long to correct very blatant problems.That list is long obsolete. We have namespaces, exceptions, anonymous functions, decent oop etc. now. Magic quotes is disabled by default.
Early 5.x is long obsolete. WP 3.2 made 5.2.4 mandatory. That was back in 2011. Also I think most hosts went directly from 4 to 5.2.4 when WP forced their hand...some of those flaws were present in early 5.x. That's not long obsolete.. and let's be honest. Even if PHP did have some miraculous overhaul since PHP4, that's taking WAY too long to correct very blatant problems.
Both paragraphs support my opinion rather than yours. Early 5.x is long obsolete... k, so that just tells me it took even longer to fix glaring shortcomings and flaws.Early 5.x is long obsolete. WP 3.2 made 5.2.4 mandatory. That was back in 2011. Also I think most hosts went directly from 4 to 5.2.4 when WP forced their hand.
I think you are misunderstanding how technologies succeed. It is rare that the best tech succeeds. Other factors are much more important. Take unix vs. windows, token ring vs. ethernet etc. as examples. In a lot of those examples the inferior tech that did succeed ends up adopting the features of the superior tech that failed to get the same traction. Like that whole sudo thing in windows 7.
w3schools is bad, out of date, and only serves as an example for individuals to use against PHP in citing examples.w3schools is best way to learn php
Yes this is what I meant. PHP is not the superior technology if you are a purist. But it is getting better.Aldryic, I don't think Abdussamad is contending that PHP is the more efficient or better technology. It caught on because it could be integrated into HTML easier than most languages (had mod_python continued development, who knows what would have happened), and since then the developers have struggled trying to appeal to both amateur developers and career developers.
Yes, growth has been slow, but I think in some ways PHP suffered from the same thing Perl did. They wanted to go big with the PHP 6.0 release (I believe it ended up being 5.3), with core unicode support and namespaces, but weren't able to accomplish it in a timely manner. Since then, development has been focused on bringing PHP in line with other languages. PHP 5.4 shipped with a sizable performance increase as well as removing safe quotes, call time pass by reference, a built-in web server. 5.5 shipped with an opcode cache, a password API easy to maintain, generators, and deprecated the MySQL extension.
I can acknowledge PHP has been slow to adapt, but I feel in the past few years real efforts have been made to change that. No, the function naming hasn't been fixed (rasmus seems dead set against it for now), but other critiques of the language have been addressed.
I'm obviously biased towards PHP because I work with it on a daily basis, but I really do think the language (and community) is trying to improve. Look to the PSR-FIG and Composer for examples of developers working to push the language forward.