Quote:
Originally Posted by gaming_mouse
i'm not totally sure what the argument is anymore? are you making the case that php is in fact a better designed language than python or ruby?
Oh no, I'm not to comparing PHP to anything. My argument is entirely unrelated to other programming languages or their merits.
Quote:
Originally Posted by gaming_mouse
it sounds like you arguing that just because a tool can be used well, it's a good tool.
Actually, I'm arguing that
only because a tool can be used well, it's a good tool. A tool's effectiveness, when correctly used, is not diminished merely because there exists a possibility that the user may misuse the tool. And thank goodness for that.
For example, I have no idea how to drive a bulldozer. If I jump in one right now, everyone would laugh if I declared the bulldozer to be faulty after accidentally taking out my neighbor's porch. They would laugh because the bulldozer was operating exactly as it should, and because my blame is proved by the fact that a competent operator would have not made that mistake.
Yet somehow, this is precisely the logic being followed when people see bad PHP code and conclude that fault lies with the language and not the developer. I have yet to see a case where someone wrote a correct PHP function, and yet the interpreter just said "Meh, I think I'll just do something else." (Even when it may feel that way)
Quote:
Originally Posted by gaming_mouse
but an equally important question is: how do people naturally use the tool?
the people that read the whole manual could program their old VCRs too. but the process was often unintuitive. isn't it fair to blame the VCR makers, since it was possible to have made something better and more intuitive that even peopel who hadn't read the manual could figure out?
We may part ways on this point because I don't know if I can agree that your example is analogous.
A consumer is correct to blame the manufacturer for their bad products. But consumer goods are not programming languages. Setting a VCR is an activity susceptible to objective measurement -- it was either done correctly, or it wasn't.
Programming languages are distinguishable in that there are varying degrees of skill involved in the activity. Because there often are many ways of achieving an identical result, and because optimal use is often dependent on particular circumstances, I submit that considering natural use of the language is by and large a fruitless endeavor.
But, I digress, because that really isn't a component of my argument. And even if true, it doesn't negate my argument that incompetent coders are to blame for bad code, not the language they used.
As I alluded to earlier, my interest in the debate arises from my opinion that negative views of PHP exist largely as the offspring of a suddenly popular to repeat logical fallacy (that I'll reiterate: blaming the programming language for the errors of the programmer). I think it's alarming that a community built on logic and reasoning, and so heavily relied upon by the public, could experience such a dramatic shift rooted in an error of reasoning.