Skip to content

u/phdaemon

In this archive from Sep 2015 to Oct 2026

4
posts
109
comments
3
media
665
score
3 saved before deletion

The last thing PHP needs to do is hold back the language for WordPress of all things.

If they want to fork an older version because they refuse to update and they want to back port security updates, they're free to do that, it is after all, a FOSS language.

Backwards incompatible changes are introduced in major language versions (following sever) and even then often they are deprecated first.

This article is concerning because here is a guy that is a contractor for the PHP foundation, talking about stalling advancement in the language.

Imagine if we were still doing shit like in the PHP 4.x days. Absolute nightmare.

People are free to write bad code still, but now thanks to the advancement of the language, we can write better code. We should keep doing that.

And pausing that advancement for the sake of a single library, framework, etc, would be a terrible thing.

16 points

I don't understand what "No true Scotsman" is here for?

Yes, i can tell. In fact you don't understand much at all. But that's ok. We need devs like you so that others can shine :)

You use this example to prove the fallacy of your statements.

😂

2 points

Sealed calsses for java are sum types

Java, by its nature as an object-oriented language with a nominal type system, does not have built-in "native" sum types in the same way functional languages like Haskell or Scala do.  However, Java's features allow for the emulation of sum type behavior (Sealed Classes and Interfaces).

EMULATION.

In PHP, there are also a bunch of ways you can emulate them. Again your arguments fall SOOOOO FAR down the no true Scotsman fallacy it's not even funny dude.

Okay, if you say so, it probably is. Just don't try to make an objective comparison.

Oh but it is an objective comparison. I'm comparing these languages for the specific use case of back end web development. Wtf are we even talking about here?

Scala is about as widespread as Java. Python is 5 times less widespread than Ruby. Golang is generally something exotic, its prevalence is less than Perl, Erlang and Miva Script (something proprietary that will not be updated for several years). There is no reason to doubt this statistic.

I think there's a pattern here of you not fully comprehending what is being presented to you. You can take a horse to water, but you can't make him drink. w3techs is indeed pretty reliable when it comes to marketshare of web technologies (at least what is publically shared)

https://w3techs.com/technologies

You're talking out your ass. Stay ignorant, and good luck with your haskell websites bro.

2 points

TS is _awesome_ for frontend work and it actually lets me keep my sanity. I cannot deny that.

For backend, the dev with same experience with PHP and TS/JS will be more than 2x productive with PHP

Preach, brother. I'm with you on this. Love TS for front end, but PHP will always have PHP for my personal stuff. Symfony + Doctrine + the rest of the stuff I use, has years of maturity and exactly the features I need for doing my dev work. The FOSS community around this stack is the best I've seen and the libraries have been around for so long, that they have matured in extremely stable ways. The same cannot be said for JS shit, at least, not yet

2 points

Thanks for the answer. If your facts are convincing, there's no need to add a bunch of derogatory epithets.

.....
Your view that PHP itself is good is woefully outdated, and frankly somewhat indicative of your own skills as a developer. You see, such statements don't make sense. Let's just avoid them.

Says the guy that's been talking to people here as if he's superior to others.

No sum types, no multithread and concurrency. For me, these are key drawbacks.

Java does not have native sum types. Python does not have native sum types. It can be emulated in those languages, and it can also be emulated in PHP. An HTTP server can be multithreaded, or event driven, and there are plenty of solutions to make up for any performance issues.

Your argument is invalid, and your logical fallacy is called no true Scotsman.

Especially because those requirements are seldom needed at the web development level.

All I heard is that you believe that php has certain dependencies 

I did not say that. If you mean it provides solutions as prepackaged dependencies, then yes. As I said, the FOSS ecosystem is by far the most robust and mature out of all the languages for back end web development.

To me, this sounds extremely unconvincing. 

Good for you? Seems to me like the majority of the web disagrees, considering "For most of the web, the dominant back-end language is PHP, which is used by over 73% of all websites with a known server-side language."

2 points

You glossed over what I said and are still bringing your biased points of view into this, because I already gave my primary reason for liking PHP for web development over others.I'll repeat it again, so you don't miss it this time:

PHPs FOSS ecosystem (packagist, composer) is by far the most mature and robust when it comes to web development. Compared to Java, Python, C#, etc, PHP will have 10 to 1 the number of packages/libraries available, meaning I don't have to worry about reimplementing the wheel.

The language itself supports pretty much all modern best practices (minus very few specific cases).

I've seen shit Java code that looks just as bad (or worse) than shitty PHP code, same thing with Python.

Your view that PHP itself is bad is woefully outdated, and frankly somewhat indicative of your own skills as a developer.

If you think that the language itself is what prevents or makes a developer code badly or well, then I think you need to read up some more.

3 points

This is a terrible take.

I code in java, typescript, python, c#, c++, php, ruby, and dabble in rust and go. I am currently a Staff Engineer at a FAANG company (and have been doing development since 2004).

My favorite language for personal web projects is still PHP by a long shot. The FOSS community for the language is by far the most mature and robust when it comes to web development. Even if I am forced to use other languages for work, I still like PHP the best for my own stuff.

once a developer learns several different languages, he simply does not return to PHP

Nonsense.

You are clearly operating on a very antiquated view.

Languages like anything else are tools, and PHP is hands down the best language for backend web development most of the time.

3 points

That's good but, sometimes the market isn't looking for Php specific developers, sometimes you need to adapt.

I used to be primarily a PHP dev, but I got an interview at a FAANG company and they dont do PHP. I passed all the steps so now, I do python and Java. Been here for the last 7 years. I still use PHP in my personal projects, but, you gotta go where the money is.

12 points

If you're familiar with patterns and principles those apply across all languages. I like Php more than Java, but I'd say that Java positions are the easiest to pick up as a php dev if you're familiar with things like symfony (spring), doctrine (hibernate), mockery (mockito), etc.

Sell yourself as a developer whose caliber transcends specific languages, since like I said, if you are good with patterns, principles, etc, then those apply no matter if it's Java, python, etc.

54 points

Bullies don't do well when a bigger bully comes around....

Then again, I wasn't there. I'm just relaying the information posted a long time ago, when it was posted earlier than now.

0 points

This has been reposted many times.

The original story goes something like, the dude that was drinking beers was originally in the pit, and being an asshole to people, picking on little guys and hitting them, so this other guy did that to teach him a lesson.

13 points

Google is a thing.

You claimed that no good libraries work for the latest php versions (wrong), that there are no good frameworks / or they don't work with latest php 8 (wrong).

You came in here spouting a bunch of nonsense.

Only crappy programmers attack a language other than for memes. And you did so seriously.

0 points
  1. I work for faang. I honestly couldn't give a crap about proving anything to anyone here.
  2. I do FOSS PHP projects for fun.
  3. Symfony (alt. Spring), symfony flex (prev: silex) or slim (flask), Guzzle, Mockery (Mockito), PHPUnit, Composer (pip/gradle), Doctrine (Hibernate, sqlalchemy -- doesn't even have an abstract syntax like HQL or DQL), JMS Serializer (Does contexts and API versioning, haven't found anything like this in other languages, the closest thing is Marshmallow in python and it falls way short), etc etc etc.

You should educate yourself before talking with such conviction.

1 points

As someone who professionally develops on all those 3 languages (and more), the biggest thing php has over python and Java are the open source libraries and frameworks. There's a lot more choice and often times features in the php foss than other languages.

4 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.