Better HN
topnewbestaskshowjobs
Log inSign up

papsosouid

2,420 karma · joined Apr 9, 2012 (14y ago) · 1,199 submissions

Submissions

comment 14y ago · link · parent

Read the thread, it isn't like his post went without responses.

comment 14y ago · link · parent

He seems like he does. You might notice I never said no PHP apologist understands PHP, but rather contradicted your (frequently posted) lie that PHP detractors don't understand PHP. Of course, he doesn't offer an actual rebuttal to much, mainly just "well yeah it sucks, but I know it sucks so its ok".

comment 14y ago · link · parent

>Hacker News really doesn't like PHP. There's a whole lot of blind prejudice in this thread

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

There is such commentary from people who left facebook to do their own thing. They did not use PHP. http://www.quora.com/Quora-Infrastructure/Why-did-Quora-choo...

comment 14y ago · link · parent

Yeah, sure seems like this guy has no clue about PHP alright: http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-de...

comment 14y ago · link · parent

You have to choose between all the same kind of stuff with PHP too. The position was "I'm using PHP, and I can't switch to another language because I am afraid I'll pick the wrong one". That position is silly, because anything you pick is guaranteed to be better than PHP. There's no "wrong" between python and ruby, they are for all intents and purposes the same.

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 first question that comes up is what to use instead, and they’re met with a barrage of difficult choices and wildly different opinions and recommendations.

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

Hiphop doesn't really compete in the same space, as it only converts a subset of PHP into C++, and has very limited support for various PHP modules. I don't think any of the common PHP apps like wordpress, joomla, etc work under hiphop. Stuff like Quercus is the jruby of PHP, being an actual implementation of PHP rather than a source -> source translator. But I haven't seen any benchmarks showing it actually beating regular PHP. It does have a much better security record than the official PHP though, and is probably a worthwhile project on that grounds alone.

comment 14y ago · link · parent

>Most "high" performance PHP doesn't use one of the usual-suspects in the framework world and can easily beat Rails (and usually plain ruby too).

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

>The best way to combat something as pervasively and institutionally awful as PHP is not to point out all its (many, many, many) faults, but to build compelling alternatives and make sure these alternatives are equally pervasive, as easy to set up and use as possible.

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

>Raw PHP usually beats Rails handsdown, and most PHP frameworks are usually comparable

Being able to keep up with the slowest competitor in existence isn't very good.

comment 14y ago · link · parent

You don't need to wonder, they've said it.

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

Ignoring the point doesn't refute it. The idea that gay people are in fact people, and have the same rights as anyone else is not a partisan issue in modern, civilized nations. And saying "if I invent a definition of hate that excludes hatred, then by that definition Eric doesn't hate gays" is not a productive line of discourse.

comment 14y ago · link · parent

You might want to look up libel in a dictionary before tossing it around. And the blog was not someone's experience with phonegap, it was someone's experience with trigger.io, they just happened to repeat some made up nonsense about phonegap in it.

comment 14y ago · link · parent

>The first step you've linked there for PhoneGap Android is to install Eclipse

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

>What made you think that's what's going on here?

As I said, the gross misrepresentation of your main competition.

comment 14y ago · link · parent

What is the deal with all these "I made an app using trigger.io" blog posts that seem to have been paid for by trigger.io? I don't think I've seen a mention of trigger.io yet that doesn't grossly misrepresent phonegap as being some difficult, arcane, "only greybeards can use it" monstrosity.

>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

For compiling C++ code. Which gcc will start using. This is just a way to make compiling gcc take 20 times longer.

comment 14y ago · link · parent

Somewhat on-topicish, does anyone have any recommendations for colocation in Toronto? The only recommendations I've gotten for a reliable provider has been for peer1, but they are insanely expensive and both their support and sales staff are quite the opposite of helpful. For reference (since peer1 tends to make up "whatever we think we can get away with" pricing), I was quoted $60/Mb for 95th percentile or $0.85/GB (which puts 1TB of data transfer at nearly $1000!).

comment 14y ago · link · parent

They're at work, they're supposed to be suffering from eye strain. Desks facing walls is bad, because you can't shift your view to something distant to rest your eyes without turning around. And I wouldn't even dream of working anywhere that had the mentality "you should be working all the time so it doesn't matter who is looking over your shoulder". If I need to spend 5 minutes talking to the wife on IM, I am going to. If you have a problem with that, you're going to have a hard time hiring good people.

comment 14y ago · link · parent

Just because PHP doesn't 100% doom you to failure, doesn't mean there is "nothing wrong with it".

comment 14y ago · link · parent

I just want to point out that just because go lacks a good way of handling error conditions, doesn't mean exceptions are the best way. Haskell has exceptions, and I wish it didn't. Because it has better options for dealing with error conditions, like Maybe and Either. If you are checking for an error condition every ten lines, those are by far nicer than using exceptions.

comment 14y ago · link · parent

>I'm guessing it's people like you, i.e., progressives. If that's not partisan, I don't know what is.

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

Yes of course Eric, it's all just liberal propaganda. We should all hate gays just like you since a bullshit article claims Turing was pretty happy. Certainly people who advocate for basic human rights are just "partisans".

comment 14y ago · link · parent

>Actually, most of those lists are based on PHP4 or older (meaning their opinions are fully eight years out of date; a LOT has changed) or are made irrelevant by changing one or two quite well-documented confit settings. The little that's left over are mostly complains that PHP isnt something that it's not trying to be (strongly typed, most commonly)

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

I have one. Perhaps the site needs HTML5 compliant markup?

comment 14y ago · link · parent

Things I still don't know because the site is just a solid black page with nothing on it.

comment 14y ago · link · parent

>Some of the people who raise the biggest fuss about PHP are also people who never dealt with it (except through Wordpress).

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.

comment 14y ago · link · parent

The women involved in what? I'm not sure what you are trying to convey here, you think there is a singular mind shared by all women involved in something, and they all disagree that it is patronizing?

comment 14y ago · link · parent

I'd argue the opposite. I think "thanks for sticking with it" is patronizing. Contrary to popular belief, women are not feeble and weak and incapable of living in the real world. And they don't all feel victimized by some oppressive system of sexism.
1
353637
40