Earlier quoted context omitted.
What do you mean?? Do you have any idea of just how many programmer hours have been wasted by the absence of features, just how insecure so many web apps are due to the weird casting system and lack of safety-oriented features. My impression is that people who claim PHP has not cost them development time have simply never looked at alternatives that solve many of the problems.
Without going off on a limb, I'm guessing you're a not too experienced developer. You comment as if instead going for Perl, Ruby or ASP inherently makes an application safe, saves buttloads of manhours etc. And you're wrong. Gravely wrong. Excluding the obvious issues caused by bugs that are a natural part of any programming language's development, security problems are not caused by the language chosen, but by the d…
Stack Overflow: Defend PHP - convince me it isn't horrible
51–60 of 74 posts
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#52Earlier quoted context omitted.
Like someone else already said, "small thing"... like Facebook? Like Flickr? Like Wikipedia? Like Digg? :)
It's probably fair to say that all of these started out pretty small (and quite a lot time ago). If you're a one-man company with a great idea and possibly not a huge amount of programming experience, then PHP is a fair choice for prototyping your design and getting things off the ground. Then, when you realise it's a runaway success and all the investment starts piling on board, the last thing you want to do is stop…
"PHP was out of the question. Facebook is stuck on that for legacy reasons, not because it's the best choice right now. Our main takeaway from that experience is that programming language choice is very important and is extremely costly to change."
From: http://www.quora.com/Why-did-Quora-choose-Python-for-its-dev...
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#53Earlier quoted context omitted.
Agreed. Fwiw, many of the complaints apply to other "better" languages also: - PHP has inconsistent naming of built-in and library functions. - C has types like int, size_t, jmp_buf and FILE - PHP performance is abysmal without caching - MRI Ruby is pretty slow too - Functions are case insensitive - Lisp anyone? etc etc The whole meme of PHP warts seems more like an exercise in confirmation bias than objective analys…
Yeah, but if we continue that logic and fill up that "etc etc" it would seem that the other languages have their own bad features and PHP combines them all.
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#54Earlier quoted context omitted.
Agreed. Fwiw, many of the complaints apply to other "better" languages also: - PHP has inconsistent naming of built-in and library functions. - C has types like int, size_t, jmp_buf and FILE - PHP performance is abysmal without caching - MRI Ruby is pretty slow too - Functions are case insensitive - Lisp anyone? etc etc The whole meme of PHP warts seems more like an exercise in confirmation bias than objective analys…
Yeah, the minor details of PHP don't really matter. It's the whole language and ecosystem when viewed as one that is really repulsive. It's also difficult to write good code, because there are no abstraction mechanisms. Well, there's one -- Java-style OO. But incidentally, Java is almost impossible to use for the same reason.
>> Well, there's one -- Java-style OO. But incidentally, Java is almost impossible to use for the same reason.
Tiobe begs to differ :)
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#55Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#56PHP is great if you need to get some small thing up and running yesterday. PHP is also great if an out of the box solution will almost fit the bill due to the fact that there are so many. Just take a box and do some small modifications, voila, done!
...or big thing running yesterday, right? Take Facebook for an example. To me, Facebook seems like a pretty complicated piece of software. The concept isn't very complicated but there are so many features all over the place.
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#57Earlier quoted context omitted.
Without going off on a limb, I'm guessing you're a not too experienced developer. You comment as if instead going for Perl, Ruby or ASP inherently makes an application safe, saves buttloads of manhours etc. And you're wrong. Gravely wrong. Excluding the obvious issues caused by bugs that are a natural part of any programming language's development, security problems are not caused by the language chosen, but by the d…
A well designed language or library can decrease the likelihood of specific bugs, and especially security problems. Imagine the existence of a library which made it easier to use SQL placeholders than to concatenate user input into a string. Imagine PHP without register globals.
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#58Earlier quoted context omitted.
It's probably fair to say that all of these started out pretty small (and quite a lot time ago). If you're a one-man company with a great idea and possibly not a huge amount of programming experience, then PHP is a fair choice for prototyping your design and getting things off the ground. Then, when you realise it's a runaway success and all the investment starts piling on board, the last thing you want to do is stop…
"Then, when you realise it's a runaway success and all the investment starts piling on board, the last thing you want to do is stop and tread water for 6 months whilst you rewrite everything (introducing a whole new set of problems as you do), just to get back up to where you are now, before adding those new features." Using Ruby on Rails, .NET, or python won't magically give you great programming skills. If you are…
I often hear 'more practical', but rarely 'better', would you care to describe what features work better for you than what the alternatives offer?
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#59Earlier quoted context omitted.
"Then, when you realise it's a runaway success and all the investment starts piling on board, the last thing you want to do is stop and tread water for 6 months whilst you rewrite everything (introducing a whole new set of problems as you do), just to get back up to where you are now, before adding those new features." Using Ruby on Rails, .NET, or python won't magically give you great programming skills. If you are…
"I carefully choose php for all of my projects because it's better than all of the alternatives. I know I'm not alone in my thinking." I often hear 'more practical', but rarely 'better', would you care to describe what features work better for you than what the alternatives offer?
Why "more practical"? There are a slew of other languages and frameworks out there that could be used.
PHP gives you the flexibility to create more complex projects without being pigeon-holed into one specific framework. I noticed this with some of the newer languages (and frameworks) such as RoR and Django. The higher the level you go, the more difficult it is to get around the built-in features that try to make it easier to develop an application. PHP is at the perfect level for me. Higher than say c, but lower than something like RoR.
Also, the c syntax makes it to move onto other languages.
It's also been around for 15 years, which means a plethora of support and examples. The language itself may have some issues (naming convention, Unicode support, non-standard namespace convention), but it can still be used to create solid applications that scale well (if you know what you are doing).
Since PHP has been around longer, people really need to come up with reasons NOT to use it (and why I should be using new language X). So far, I'm not convinced.
Re: Stack Overflow: Defend PHP - convince me it isn't horrible
#60Earlier quoted context omitted.
What do you mean?? Do you have any idea of just how many programmer hours have been wasted by the absence of features, just how insecure so many web apps are due to the weird casting system and lack of safety-oriented features. My impression is that people who claim PHP has not cost them development time have simply never looked at alternatives that solve many of the problems.
Without going off on a limb, I'm guessing you're a not too experienced developer. You comment as if instead going for Perl, Ruby or ASP inherently makes an application safe, saves buttloads of manhours etc. And you're wrong. Gravely wrong. Excluding the obvious issues caused by bugs that are a natural part of any programming language's development, security problems are not caused by the language chosen, but by the d…
If your statement were true, then by that measure making a program in assembly would be as safe as doing it in C#. Evidently, it is not. Languages make certain idioms easier or worse, and they have a culture of security or they do not, which is reflected in development methodologies, libraries, and code samples.
PHP fails massively in all those regards.