Re:PHP Sucks
by reitanqild on Thursday June 16, 2016 @12:56PM
(#11917326)
> Programming has to be the only environment where the voices of academia don't seem to matter because "my language gets shit done".
Wrong, otherwise we would have this discussion in Esperanto.
Sometimes Real Life (TM) experience beats clever design. PHP was first, has iterated, always had a niche and is now better than ever. Not good but good enough to save people a lot of work.
> PHP is not fast
Actually, it is.
Re:PHP Sucks
by VeejayRampay on Thursday June 16, 2016 @01:14PM
(#11917455)
I don't quite grasp your logic. That comparison only means that PHP is faster than other slow languages. Being faster than slow doesn't mean you're fast.
Re:PHP Sucks
by reitanqild on Thursday June 16, 2016 @12:54PM
(#11917322)
> it doesn't offer a dramatically different or original model of thinking about programs.
In PHPs niche this should be in the advantages section.
Re:PHP Sucks
by snorfonius on Thursday June 16, 2016 @06:22PM
(#11919346)
Hi Veejay, I do not know for how long or just how intensely you have been in contact with the "academia" so far, but let me tell you this: however much a certain solution is promoted in academic circles has close to nothing to do with how useful it actually is to general (programming) society.
The average academic bases his assumptions of what makes a language "good" or "bad" on 6-12 months of internship at a medium sized company (preferably in a mgmt/assistant position), some tutorials he went through and 5 years of theorizing with a professor who did his last serious programming work back in the 1980s. Granted, this approach sometimes yields exciting innovations that might someday be adopted by real world applications. But this does and will not make Haskell and OCaml appropriate for the other 95% of problems developers have to solve.
So really I don't think "good language" is subjective. PHP is not fast, it's not well-designed, it's not particularly terse, it doesn't have particularly great tooling (Facebook has made that better with their HHVM initiative in all fairness), it isn't consistent and easy to reason about and the worst offender of all, it doesn't offer a dramatically different or original model of thinking about programs.
What is has going for it has nothing to do with the language itself: jobs, ecosystem and easy hosting. I totally agree that a good language is whatever works for you, but in the meantime, "whatever is good enough" is a mindset that doesn't help us strive for something better, which does matter if we're going to collectively spend decades in this line of work.