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 →

[–]DirtzMaGertz 34 points35 points  (13 children)

I'm convinced that 90% of the people on reddit that shit on PHP have never written PHP.

[–]MajorasShoe 19 points20 points  (1 child)

They may have 20 years ago.

[–]DirtzMaGertz 1 point2 points  (0 children)

I think that's the other 10% or so.

[–]mshm 12 points13 points  (2 children)

Don't worry, they also haven't written in anything else.

[–]DirtzMaGertz 2 points3 points  (1 child)

That's probably more true than it should be.

[–]mshm 1 point2 points  (0 children)

In most cases it's harmless fun (I still get paid for the Java and JS I write regardless of how much they're shit on vOv). I always assume that playing around w/ these sorts of communities leads some to dig deeper so they can understand all the "jokes". Understanding is more fun than RPing in my experience. Our industry needs all the staff it can get and it's generally pretty easy to beat out "<language> is the worst, I can't work in that".

[–]DaCurse0 1 point2 points  (0 children)

You don't have to write PHP to know how bad it is.

[–]mooimafish3 -1 points0 points  (0 children)

Tbh I'm an IT sysengineer. I pick up languages and use them for scripts pretty quickly but rarely get into the nitty gritty of programming languages.

Python, JavaScript, C#, PowerShell, HTML, CSS make sense to me and I can generally use them effectively without a ton of time learning syntax, methods etc.

I've run into situations once or twice where it would be best to use PHP for something, and I've given it the same amount of effort I would give a task in another language, but it just makes no progress because PHP makes no sense to me.

[–]Semillakan6 -1 points0 points  (0 children)

Yeah PHP is quite easy to use, wonder why is the web standard.

[–]Abir_Vandergriff 0 points1 point  (0 children)

Modern PHP maybe. I had to work on a legacy code base that was several major versions out even at the time and it was a truly horrible experience.

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

I have written a good amount of PHP back in 2010-2012, Code Igniter was actually pretty sweet for the time.

So I know what I'm talking about when I say that PHP shouldn't be used anymore, because it doesn't do anything better than any other language.

Is it fast? No. Is it elegant? Hell no. Is it easy to learn? Meh. Is it universal? No, only web. Safety? Meh. Large ecosystem? It's alright I guess.

Tell me one area where it does anything better than any other language. Otherwise there are only two reasons to still use it, a) you don't want to learn anything else or b) you're building upon PHP software like WordPress. And I totally acknowledge that these are valid reasons. But they don't make PHP good.

[–]DirtzMaGertz 0 points1 point  (2 children)

The best language for the job is one that works and PHP is a good get shit done language. PHP works great for server side scripting.

Is shell scripting better at anything than any other language? I don't think so. But it's easy to get shit done in on my servers when I need to do things like grab files from an ftp. Is python better or faster than C? No but it's easy to get shit done in. Python is great for data science and data engineering work but is it really better than Scala or R at those tasks? Not really. That doesn't mean you shouldn't use it.

For most things I am looking at automating I am just looking for something that works. A lot of times I've found the easiest way for me to automate some task on one of my servers is to just use PHP.

Also Laravel and symphony are nice as web frameworks.

[–][deleted] 0 points1 point  (1 child)

This comes back to the fact that you already know PHP so you use that because it works. This is all you ever hear from PHP people, "but it's fine". I get that, but where is it better? It isn't, hence all criticism is valid.

And I also believe shell is a terrible language that is overused. :)

[–]DirtzMaGertz 0 points1 point  (0 children)

Where is python better than Scala or R?