2,420 karma · joined Apr 9, 2012 (14y ago) · 1,199 submissions
comment 14y ago · link · parent
comment 14y ago · link · parent
PHP apologists make this claim every time PHP is mentioned here. And yet the threads are always full of these apologists, claiming PHP is awesome because facebook uses it, or because every cheap shitty webhost has it installed. Never making any actual argument that PHP is good, or rebuttal to the numerous arguments that PHP is bad. I'm sorry, but for a site that is supposed to have an intelligent, technically literate userbase, HN has far too many head in the sand PHP supporters, not too many PHP haters.
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
As for your specific case, writing your own framework in lua doesn't make ruby a wrong choice. You could have written your own framework in ruby too. Or perl, or python, or even one of those dreaded compiled languages.
comment 14y ago · link · parent
The real answer is "it doesn't matter". Of course python people will try to convince you to use python, and ruby people will try to convince you to use ruby. But both groups will agree that either language is far better than PHP. And as someone who likes neither of those languages, I would agree with both of them, just pick one. There's no "wrong choice" to worry about.
comment 14y ago · link · parent
comment 14y ago · link · parent
If you skip a framework on both languages, they end up as the two slowest languages. Hard to say if either is faster overall, but they are both awful. Using jruby provides a huge performance increase, and PHP really has nothing to compare with that.
comment 14y ago · link · parent
This is clearly not the case. The alternatives are already compelling. They are equal to or better than PHP in every single respect. Yet they are not as widespread. The idea that pointing out the flaws of PHP doesn't help is absolutely incorrect. Demonstrating the flaws of PHP, and the practical impact that has on producing useful software has been very successful for me in convincing PHP users to try something sane. I find only a very small minority of PHP programmers are actually unwilling to try anything else, most of them will give something else a shot if you simply demonstrate why it is in their best interests. Some people certainly get upset when you point out that they are using a bad tool due to ignorance of better tools, but most are able to get over themselves and realize the better tool will make their life easier.
The overall effect of convincing individuals to use better languages is that those alternatives do become as pervasive as PHP. How does someone say "I want the alternatives to be as pervasive as PHP" right after saying "stop trying to make the alternatives as pervasive as PHP" without realizing how ridiculous that is?
comment 14y ago · link · parent
http://www.quora.com/Quora-Infrastructure/Why-did-Quora-choo...
Facebook is stuck with PHP for their legacy codebase, but you'll note they avoid it for new code that isn't tied to the existing codebase.
comment 14y ago · link · parent
comment 14y ago · link · parent
Uh huh? You've never used an IDE before? And that makes you think clicking next in an installer is hours of configuration?
>Trigger's web-based approach seems to have a huge advantage over all that installation/configuration
See, this is exactly what I mean. You are welcome to say "I prefer editing my code in a web browser", and I will certainly believe that (although I'll obviously assume you are insane). But trying to characterize the alternative of "using an editor" (which everyone already does for every other kind of development) as some arduous task is absurd.
>but it's a lot more work to get to the "it's easy now" stage which this blog gets to very quickly using Trigger.
No, it isn't. That's precisely the point. I just did it yesterday, that's why I know. It took 5 minutes to have a nicely documented example app up and running ready for me to edit it. I typed 0 commands. Deliberately misrepresenting software X is a bad way to sell people on software Y. It just makes you seem dishonest, and then your opinion isn't trusted.
comment 14y ago · link · parent
>I decided to go with Trigger.io to achieve my goal, as I wanted to spare myself endless hours spent on configuring environment (as opposed to PhoneGap/Appcelerator)
Huh? Have you tried phonegap? How does "click next on a couple of installers and extract a single zip file" take hours of configuration?
>Trigger.io provides you with a pleasant environment, where you don’t have to touch command line at all! It works as an app within your browser, from localhost. I do understand that a lot of folks may prefer “hacker-style” black terminal over Trigger’s clean and minimalistic web app, but for me clicking a button that i can see instead of typing a command is a much better experience, especially at the beginning.
I can't figure out what on earth he is trying to compare it to here. What html/js mobile app framework involves typing commands in "hacker style black terminals"? With phonegap you just click "run as android application" (or whatever you want to run it as).
This is how hard it actually is to setup phonegap: http://docs.phonegap.com/en/1.8.1/guide_getting-started_andr...
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
comment 14y ago · link · parent
Who is "progressives"? And who says I am one? You have a very warped view if you think basic human rights is partisan. The US may well have a fringe group of lunatics who feel that human rights are bad, but in the rest of the free world human rights is not a "depends on your political affiliation" deal.
>I also fear you've misunderstood ESR.
I fear you have no idea who Eric is. He is a bigot, hates gays, liberals, blacks, hispanics, and basically anyone who isn't part of his fringe group of lunatics. You are interpreting his nonsense in the least offensive way possible, but that doesn't mean it is the most accurate way.
comment 14y ago · link · parent
Sounds an awful lot like you are just ignoring the things you don't want to hear. It isn't just that PHP is weakly typed, it is that it has absurd type conversions that no other weakly typed language does, that aren't even consistent, and explicit casts don't serve the expected purpose of forcing the correct type:
"1e1" == "10" => True
$a = "foo"; $b = 0; $c = "bar";
$a == $b => True
$b == $c => True
$a == $c => False
"22 cream puffs" == "22 bullfrogs" => False
"12 zombies" + "10 young ladies" == "22 cream puffs" => True
(string)"false" == (int)0 => True
PHP is full of bugs. Ancient bugs that have existed since PHP3, and which are still there. Serious bugs where the lexer or parser is outright broken: $ perl -le 'print 07'
7
$ perl -le 'print 08'
Illegal octal digit '8' at -e line 1, at end of line
Execution of -e aborted due to compilation errors.
$ python -c 'print 07'
7
$ python -c 'print 08'
File "", line 1
print 08
^
SyntaxError: invalid token
$ php -r 'print 07;'
7
$ php -r 'print 08;'
0
$ perl -le '$foo = 1; print(($foo == 1) ? "uno" : ($foo == 2) ? "dos" : "tres");'
uno
$ php -r '$foo = 1; print(($foo == 1) ? "uno" : ($foo == 2) ? "dos" : "tres");'
dos
PHP is written by absolutely incompetent developers. There were 37 exploitable vulnerabilities in 2011. Compare that to 3 for python, 3 for perl, and 7 for ruby. Steffan Esser was the only person attempting to make the PHP project give a shit about security, and he ended up giving up on it because the other PHP devs absolutely refused to consider security as important.These are not problems that are fixed in recent versions of PHP. They are not misinformation. If you want to revel in your ignorance, feel free. But don't expect the rest of the world to tip toe around the facts to avoid inconveniencing you with reality.
comment 14y ago · link · parent
That's clearly nonsense. The people who point out how terrible PHP is have huge, very detailed and very accurate lists of the problems with PHP. They don't get that from "never dealing with it".
>If you will ship faster and better with language X, go ahead and use it.
We do. Why do you think that means we shouldn't point out how bad PHP is? Did you know that for every stubborn dumbass that sticks his fingers in his ears and screams "LALALALA I CAN'T HEAR YOU!", there's an inexperienced developer who didn't know how bad PHP was or why, who was inspired to learn more because of that "PHP bashing" post, and who subsequently saved years of hardship by switching to a sane language? Just because you don't want to hear about how shitty PHP is, doesn't mean nobody else does.