Live data from Hacker News

PHP Addiction

marco.org

301–310 of 320 posts

Re: PHP Addiction

#301

Earlier quoted context omitted.

"Linux is only free if your time is worthless" Had to do it. I like linux a lot, but It doesn't make the quote false.

OS X is only $39 if your time is worthless. (See what I did there? Linux, OS X, and Windows all enable infinite tweaking. No setup will ever be perfect, and making it closer to perfect takes time. If all you want is a web browser, that's a click away in every major OS.)

I don't...his comment makes infinite more sense.

Re: PHP Addiction

#302

Earlier quoted context omitted.

"Linux is only free if your time is worthless" Had to do it. I like linux a lot, but It doesn't make the quote false.

OS X is only $39 if your time is worthless. (See what I did there? Linux, OS X, and Windows all enable infinite tweaking. No setup will ever be perfect, and making it closer to perfect takes time. If all you want is a web browser, that's a click away in every major OS.)

  > See what I did there
I do. Comparing apples and oranges.

Re: PHP Addiction

#303

Earlier quoted context omitted.

But the problem is MySQL and PHP are objectively, measurably much worse than the alternatives you have listed. Cool-ness biases are perhaps not so easy to distinguish from justified ones.

I'd like to extend your claim to Redhat as well. I won't make the comparison directly to Ubuntu, but I will compare it to Debian. And in the realm of server-oriented tasks, Debian is hands-down a better option, from the point of view of a sysadmin. I was a linux sysadmin at a university for 6 years, and I used linux personally for a decade (before switching to iOS dev). During that period, I've had brief, frustrating…

> * How do you restart apache on Debian? "/etc/init.d/apache restart". On Redhat? "/etc/init.d/httpd restart". Ah, so Redhat is in the habit of renaming all of their init.d scripts after the protocol of the service? Nope, turns out they only did that to Apache's script. WTF?

For historical accuracy, the HTTP server binary of the Apache project has been called 'httpd', compiles to 'httpd' in the source official distributions and is distributed as 'httpd' in the binary official distributions for ages, if not since day one.

Re: PHP Addiction

#304

Earlier quoted context omitted.

In my experience, I have three choices: I can have a poor Linux environment with no work, a better but still mediocre Windows/OS X environment with little work or a good Linux environment with a bit of work. The reason I don't use Windows or OS X any more (and I've used both extensively in the past) is simple: sure, both are easier to set up (with a new computer, there is no set up). But both are strictly less produc…

I'd disagree that setting up the computer is an O(1) operation, because it ignores maintenance. Changes, additions, upgrades, new hardware, new software. I'd also disagree that Linux is objectively faster for getting "real" work done. An example to illustrate the point: I've been using Ubuntu on and off, and tried to set up IntelliJ to match my Android development environment on Mac OS X. First of all, the installati…

I remember having ugly fonts on Linux... somewhere around 1998.

It sounds like IntelliJ has garbage Linux support and you're blaming the OS for it.

Re: PHP Addiction

#305
post #241

Earlier quoted context omitted.

Some things simply can never be fixed. Figuring out when that happened to you is a judgement call.

List them out, explain them, show your work... If us PHP developers have such bad judgement, show us the error of our ways. And do not link to some other persons blog post - explain it yourself.

Why should I bother following your demands? If you've ignored a million blog posts that clearly explain it, you'll ignore me as well. And if you don't have enough experience of better programming languages that the warts are obvious, then what I could have to say would make no sense to you. To you it would be just the way things are - even though they aren't that way for other developers in other languages.

Re: PHP Addiction

#306
post #210

Earlier quoted context omitted.

The first half of your post is basically a long-winded appeal to popularity. Yes, most people on the web use PHP and Apache. Most people on the web also need nothing more than a WordPress installation and their online needs are met. Does that mean WordPress is the best tool out there? You should stop confusing popularity with quality, because the two rarely overlap. > C10K is not a problem and never was. Somebody bet…

> The first half of your post is basically a long-winded appeal to popularity. No it's not. We're not talking about music --how popular Bieber is vs Bach, for example. So he didnt just say "tons of people use PHP", he said "tons of people use PHP and it solves their problems giving results". This is not an "argument by popularity", its an argument by number of empirical verifications. Which is supposedly what enginee…

> So he didnt just say "tons of people use PHP", he said "tons of people use PHP and it solves their problems giving results".

The original discussion was about whether PHP was a good language. He came in and said, "It is because look at all the people who use it! Obviously it's fine!" That's an appeal to popularity.

> On the other hand your arguments are appeals to "logic", "theory", etc, eg idealism and elitism in the face of actual results.

What results? We're not talking about Mom & Pop's Homepage, here. Posting about how most sites run on PHP doesn't help us when we're not talking about most sites. We're talking about building apps.

Re: PHP Addiction

#307
post #266

Earlier quoted context omitted.

In regard to his "objects compare higher..." point, I think he was referring to this: class MyClass {} class YourClass {} $myclass = new MyClass(); $yourclass = new YourClass(); var_dump($myclass > $yourclass); // false var_dump($myclass In regard to his "there's no pass-by-object identity..." point, there's no way to do this: class MyClass {} $myclass = MyClass; $anotherclass = $myclass(); I really don't have the en…

> In regard to his "objects compare higher..." point, I think he was referring to this: That all comparisons between objects, except equals and strict equals, return false doesn't seem terribly unreasonable. > In regard to his "there's no pass-by-object identity..." point, there's no way to do this: class MyClass {} $myclass = new ReflectionClass('MyClass'); $anotherclass = $myclass; $instance = $anotherclass->newIns…

> return false doesn't seem terribly unreasonable.

It should throw an error, not return false. This goes back to PHP's "try as hard as possible to run the script" mentality.

The author doesn't need to know C++ to comment on PHP's failings, does he? And he knows private/public/protected— you even quote him using them. You're probably not familiar with Python, but there aren't any private methods (aside from double underscored-prefixed methods, but that's not entirely the same). That's where he was coming from. It's not that he doesn't know those terms; it's that he thinks that's how they should work.

Judging by your other responses, you're quick to toss out whether someone is a "PHP programmer" or not, as if that has any bearing on their argument. I'll tell you right now, I work in PHP five days a week, and I agree with most all of eevee's points.

Re: PHP Addiction

#308

Question: is there a Node.js package out there that lets me write in PHP style, without having to configure anything ? I mean, I install node, I install the node package, I start the server... And then it just looks for an "index.node" file or something in a directory? URL's would map to node files? It would use some kind of templating syntax like or whatever, but the point is, it would be as easy to use as PHP. (Eac…

I don't think that model would fit all that well with node in particular. I'm not sure how would make a templating system like that play well with asynchronous calls. And using synchronous function everywhere won't work. (For example, I couldn't figure out how to read from STDIN synchronously, at all !) But even if you do decide to use the synchronous functions everywhere, having all your function names end in Sync w…

Hmm... you're quite right about that. At the minimum, there would have to be a per-page set of "code", which could contain async functions and result in a final callback, and then a separate per-page "template", which could not. And then that would kind of defeat the whole simplicity of the model, so you might as well use a proper framework.

I guess that's why nobody's done it yet. :) Thanks!

Re: PHP Addiction

#309

Earlier quoted context omitted.

I'd disagree that setting up the computer is an O(1) operation, because it ignores maintenance. Changes, additions, upgrades, new hardware, new software. I'd also disagree that Linux is objectively faster for getting "real" work done. An example to illustrate the point: I've been using Ubuntu on and off, and tried to set up IntelliJ to match my Android development environment on Mac OS X. First of all, the installati…

In my experience, Linux is actually easier to maintain. For example, when I was using OS X (several years ago, now), I could not figure out how to update Java. Apparently it involved using the "Software Center", but it didn't actually work, so I was stuck with the old version. So the project I was working on in Windows at the time just didn't work on OS X because it was using new APIs. Absurd! I've never had a proble…

I don't know... I think you picked some awfully bad examples.

Updating Java on OSX is trivial (download & run), no idea what problem you ran into with git, OSX has full-screen apps and multiple desktops, and OSX has always had the nicest font support and type rendering of any OS -- Apple has always been at the forefront of that.

Re: PHP Addiction

#310
post #307

Earlier quoted context omitted.

> In regard to his "objects compare higher..." point, I think he was referring to this: That all comparisons between objects, except equals and strict equals, return false doesn't seem terribly unreasonable. > In regard to his "there's no pass-by-object identity..." point, there's no way to do this: class MyClass {} $myclass = new ReflectionClass('MyClass'); $anotherclass = $myclass; $instance = $anotherclass->newIns…

> return false doesn't seem terribly unreasonable. It should throw an error, not return false. This goes back to PHP's "try as hard as possible to run the script" mentality. The author doesn't need to know C++ to comment on PHP's failings, does he? And he knows private/public/protected— you even quote him using them. You're probably not familiar with Python, but there aren't any private methods (aside from double und…

> It should throw an error, not return false. This goes back to PHP's "try as hard as possible to run the script" mentality.

I don't disagree. Although I think this goes towards PHP weak typing not it's try as hard to run the script.

> It's not that he doesn't know those terms; it's that he thinks that's how they should work.

He thinks they shouldn't exist at all. Which is one philosophy but that's not a valid criticism.

> I'll tell you right now, I work in PHP five days a week, and I agree with most all of eevee's points.

Even where he clearly doesn't know what he's talking about and didn't try the code he was supposedly saying doesn't work?

Those who don't know their tools are bound to have more problems or believe things that are just wrong.

Post reply on HN