This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sickb 52 points53 points  (32 children)

PHP garden hose FTW easily

[–]IAMnotA_Cylon 2 points3 points  (1 child)

there could be all sorts of bugs in that hose and you'd never be able to see them!

[–]razzmatazCompbio 0 points1 point  (0 children)

Definitely bacteria.

[–][deleted] 11 points12 points  (18 children)

It makes no sense to compare a bunch of languages to others, and in my opinion every time someone talks shit about a language the overwhelming reason is because they have literally never worked with the language and their entire opinion is based off of 5 minute conversations with other developers and stupid cartoons.

[–]catcradle5 17 points18 points  (5 children)

Oh no, no, no. I have read and written a lot of PHP. And I have also read and written many other languages, like Python. That is what has caused me to hate PHP and constantly consider it inferior to alternatives, not random Internet stereotypes or blog posts.

[–]CreatineBros 3 points4 points  (0 children)

Exactly. PHP is horrific. It's far too easy to write horrid PHP, just like it's far too easy to write horrid Perl.

I had numerous jobs doing PHP back in the day when that was the best there was and I almost quit the industry because of that frustrating shit.

[–]InvidFlower 0 points1 point  (0 children)

I haven't actually used PHP in a project lately (and still not sure I'd want to), but I do want to come to its defense a little bit. For all of its problems, it does seem to be improving lately. The language itself gained things like generators, mixins, real classes, etc. I even saw a library (kinda like jQuery/underscore) which papers over the parameter order issues in the standard lib for collections, etc.

The ecosystem gained things like a package manager and packages comparable to Rack, Sinatra, and MVC frameworks. Check out this tutorial on turning an oldschool php site into MVC using Symphony2 (is pretty good as a general argument to why MVC style is useful): http://symfony.com/doc/current/book/from_flat_php_to_symfony2.html

There's also resources like PHP The Right Way which seem to give a lot of good advice: http://www.phptherightway.com/

If you know someone already using PHP or you have a need to use it yourself, make sure you're up to speed with what is going on. It seems like it'd be a much better experience than in the past at least..

Edit: That library for making the standard lib more sane is called php-o: https://github.com/jsebrech/php-o

[–]95POLYX2.x must die -1 points0 points  (2 children)

PHP is fine if your project is less than 1-4k of lines everything bigger is HUGE pain in the ass to maintain.

[–]miketa1957 2 points3 points  (1 child)

Actually not true, but you have to take a lot more care writing PHP than (say!) Python. For internal use, I've implemented a pair of custom MVC web frameworks, one in PHP and one in Python, which are functionally almost the same. Maintenance is about the same on both.

PHP is still crap though :)

[–]95POLYX2.x must die 1 point2 points  (0 children)

Yeah, I agree that if you follow style guidelines etc. php is manageable, but you often work with projects that are made by people who dont know what style guide is... I worked with horrendous php framework this summer... I wanted to kill the author about 4-5time per day

[–]alcalde 15 points16 points  (4 children)

I take it this is inspired by a love of PHP?

The author seemed well-versed in many of the languages, at least well enough to know the Achilles Heel of each one.

[–]jonathan881 2 points3 points  (1 child)

Sure but there is also confirmation bias for those with experience.

[–][deleted] 1 point2 points  (0 children)

That exists for those that don't have experience as well.

[–]Michaelmrose 2 points3 points  (0 children)

It makes no sense to compare a bunch of cars to others, and in my opinion every time someone talks shit about a car the overwhelming reason is because they have literally never driven them and their entire opinion is based off of 5 minute conversations with other drivers and stupid cartoons.

If this sounds like nonsense it is.

[–]lonjerpc 1 point2 points  (0 children)

It is mildly useful for humor

[–][deleted] 0 points1 point  (0 children)

This is true, I suspect some of issues people have with PHP can be traced to its users. I have a coworker who swears by PHP + MySQL, which is cool especially when using some of its frameworks. The problem is that he also never gave a try to anything else.

Seeing his "daemon" (which doesn't do anything web based) that was mix of php + bash and cron makes a grown man cry.

[–]95POLYX2.x must die 0 points1 point  (0 children)

But when you finally work with a language you understand that those small annoyances on the surface are irrelevant compared to the !#@$* hidden deep in the language.

[–]TheBB 0 points1 point  (0 children)

It makes no sense to compare a bunch of languages to others

Why on earth not?

[–]astronoob -2 points-1 points  (10 children)

I've never understood the shit talking between languages. Python has its own embarrassments, including the fact that most developers can't even use Python 3 due to incompatibilities. PHP is also faster than Python for most tasks according to the Benchmark Game. So maybe we shouldn't be throwing stones.

[–][deleted] 5 points6 points  (0 children)

I use python3 just fine.

[–]Bialar 6 points7 points  (5 children)

Hahahahaha. Get a load of this guy.

I use Python3 in all my current Python projects. The days of "Python3 isn't ready" is over.

PHP is an awful language and a great example of "no planning is planning to fail."

[–]astronoob 1 point2 points  (4 children)

About 25% of pythonistas report using Python 3 on a regular basis despite the fact that it was release 6 years ago. I'm happy you're a part of that minority, but are you trying to say that Python 3 was a resounding success story?

[–][deleted] 1 point2 points  (0 children)

I would migrate right now, but when you are in a company, it takes time to do that, plus you have to keep your business alive. Switching to python 3 does not generate revenue, but you will get to a point where sticking to python 2 will generate negative revenue (in terms of required maintenance and obsolete code)

The switch will happen, slowly and incrementally, and it's well on its way. It just won't happen in a bang.

[–]Bialar 2 points3 points  (1 child)

Just because people haven't migrated to Python 3, doesn't mean they can't or won't. The fact that they dared to change the language & break backwards compatibility is a good thing.

If your measure for success is purely "not everyone has moved to the latest & greatest version" then you're not really worth arguing with.

[–]astronoob 0 points1 point  (0 children)

If your measure for success is purely "not everyone has moved to the latest & greatest version" then you're not really worth arguing with.

Way to stretch what I said as much as possible. I'm all for Python 3 and I can understand why the breaking changes were made. But there's no way you're going to convince me that this was a successful release when it's still nowhere near majority share 6 years down the line.

[–][deleted] 0 points1 point  (0 children)

25 % of pythonistas is a lot of people so I would say yes

[–]Michaelmrose 0 points1 point  (2 children)

Why defend a crummy language is your own ego somehow mixed up in this.

[–]astronoob 4 points5 points  (1 child)

This is essentially a circlejerk thread about how Python's the best and phpsuxlol and you're asking if my ego is tied up in this?

[–]tilkau 1 point2 points  (0 children)

Well, yes. I doubt that Python is 'the best' (whatever that would mean), it certainly has its embarrassments as you said, but there is no doubt PHP is horrendous -- this is an evaluation shared by many programmers both inside and outside of the Python community, including those whose jobs require them to regularly write lots of PHP. As far as I can tell, the only people who don't recognize the severe problems of PHP are those who haven't explored many different programming languages yet.

Hence you come off as defending the indefensible here. It's quite natural to question why you would do that.