Bug #48669: PHP includes 'goto'
Posted: 2009.08.21 (23:25)
Welcome to the Metanet Software community.
https://forum.droni.es/
Code: Select all
$foo = "bar";
$bar = 3;
print $$foo;
This. php.net has the best documentation of just about anything I have ever used (with a competent search to boot).jean-luc wrote:I think PHP's ease of use without sacrificing power makes it very competitive as a scripting language, and it's massive user base makes it an excellent choice for web work.
And the documentation needs to be good, because otherwise with PHP's disorganised functions you'd never be able find your way around.smartalco wrote:This. php.net has the best documentation of just about anything I have ever used (with a competent search to boot).jean-luc wrote:I think PHP's ease of use without sacrificing power makes it very competitive as a scripting language, and it's massive user base makes it an excellent choice for web work.
I will continue to be openly hostile to anything that promotes terrible programming practice. Imagine a generation of programmers tainted by an inclination to hack their way through a problem because they're used to that being the appropriate means of solving one. Teamwork and organization go right out the friggin' window along with potential for easy documentation, and debugging would be a total nightmare.jean-luc wrote:I really disagree with this general sense that PHP is crap. PHP is very flexible, which certainly enables some bad behavior, but also makes it fast to do complex things. There's a reason that the variable variable function exists in PHP, and it allows for some complicated algorithms that involve quite a bit more code in other languages. I think PHP's ease of use without sacrificing power makes it very competitive as a scripting language, and it's massive user base makes it an excellent choice for web work.
There seems to be a dislike of PHP because it allows things that typically would not work to work. I don't think enforcing strict code forms is really a vital feature of a language, and I'm suspect of people that dislike languages because of their flexibility. I've yet to see a compelling reason that there's really anything wrong with PHP. don't like a feature? just don't use it. I can show you plenty of crap in other languages that people consider more 'pure.'
The hell have you been using? php's documentation is nice, but at the very least Ruby is much nicer -- _why's ruby stuff was easily the best documentation available for anything, period.smartalco wrote:This. php.net has the best documentation of just about anything I have ever used (with a competent search to boot).jean-luc wrote:I think PHP's ease of use without sacrificing power makes it very competitive as a scripting language, and it's massive user base makes it an excellent choice for web work.
PHP's syntax doesn't do a whole lot to make that easier. mod_php's <?php ?> tags do that.I really disagree with this general sense that PHP is crap. PHP is very flexible, which certainly enables some bad behavior, but also makes it fast to do complex things.
Perl, Python, Ruby, and Lua are all less verbose than PHP.There's a reason that the variable variable function exists in PHP, and it allows for some complicated algorithms that involve quite a bit more code in other languages. I think PHP's ease of use without sacrificing power makes it very competitive as a scripting language, and it's massive user base makes it an excellent choice for web work.
What are you comparing php to, Java? It only gained closures relatively recently, it still has that ugly $variable syntax, and, many languages can do variable->variable: it's called eval. Perl and Lisp are flexible. PHP is not flexible; it's just most people's introduction to duck typing.There seems to be a dislike of PHP because it allows things that typically would not work to work. I don't think enforcing strict code forms is really a vital feature of a language, and I'm suspect of people that dislike languages because of their flexibility.