I've made a ton of money doing PHP contracting locally. For my day job, it's been Python, Java, and Go.
PHP Sucks
201–210 of 297 posts
Re: PHP Sucks
#202Re: PHP Sucks
#203Earlier quoted context omitted.
Give us a break, as a language PHP is a terrible language, and yes I do develop and get paid because of PHP, and I do so for the same exact reason you listed. It pays the bills and does so handsomely too. I have 20 yrs of programming experience in various languages than I care to count, as much as 20! So I do know my languages. From an academic perspective, PHP blows! But from a practical standpoint, it's a tool. It…
Is it any worse than Javascript, if we're honest?
Re: PHP Sucks
#204Re: PHP Sucks
#205Re: PHP Sucks
#206http://www.azquotes.com/author/47278-Rasmus_Lerdorf
As a language designer myself, I would find it hard to design a language worse than PHP, but Mark Rendle has tried: https://www.infoq.com/presentations/worst-programming-langua...
Re: PHP Sucks
#207Earlier quoted context omitted.
>I'm very tired of hearing that PHP sucks. PHP is a good language And I'm quite tired of hearing this silly, totally meritless defense in every single thread that discusses PHP. Can't we just agree that it's not a very good language, but people are still doing cool stuff and lots of money with it? So many pointless fights could be averted like this.
I'll agree that what makes a good language is subjective, and that most all languages have their problems. There is a certain threshold where "good enough" is what matters. Personally, I'd rather everyone just stop the good/bad language debates entirely.
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.
Re: PHP Sucks
#208Earlier quoted context omitted.
| More often it's the programmer who sucks, not the language. Whilst it is possible to write structured, elegant php, its very hard, and thats the languages fault. The barrier to entry to write bad PHP is very low, thats what makes people think it 'sucks', because 90% of PHP codebases do. :(
It's not hard to write structured elegant php, that is horseshit. Please look at code for symfony or laravel. Hell, my annoyance with writing good code in PHP is that it ends up looking like Java, which begs the question, why not just do it in java. https://github.com/symfony/symfony/tree/master/src/Symfony or you can look at simpler sample codes I wrote for a class in design patterns with php https://github.com/segm…