this post was submitted on 30 Oct 2023
1003 points (96.1% liked)

Programmer Humor

32479 readers
641 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] mrbubblesort@kbin.social 111 points 1 year ago (46 children)

People who say PHP is shit haven't really used it and are just repeating the memes. It's a perfectly fine language and there are a number of excellent tools and frameworks for it. It's reputation is a result of it's easy entry and widespread use. A whole lot of people who knew just enough to be dangerous made a whole lot of stuff, and it ended up causing a whole lot of problems. But for some reason devs shit on the language instead of shitting on the devs who put them in a mess.

[–] ursakhiin@beehaw.org 5 points 1 year ago* (last edited 1 year ago) (3 children)

My issue with PHP isn't the language, it's the developers. PHP developer culture is much like C# and Java culture.

I could bring a million reasons I don't want to program in PHP and every time we talk about it, the PHP developer tells me I should be using it for everything. If I suggest that it may not be the best tool for a particular task at hand, the PHP developer tells me it's the only language they know so they will use PHP.

The issue is that this type of culture closes doors mentally. In any craft, we should try to use the best tool available for the task at hand. In carpentry you'd use a hammer with nails and a screwdriver with screws. In programming, there are times using PHP makes sense and times it doesn't.

In container based services, I tend to lean toward a compiled binary because it reduces the size of the container at run time and most modern languages don't require tons of heavy duty frameworks to scale well there.

In a monolith, a fully interpreted language with an MVC framework could make sense.

[–] EthicalAI@beehaw.org 3 points 1 year ago

I’ll never understand devs that go “I don’t know that language”. PHP is one of the only languages used in production I don’t know. I have read examples and it looks like you bastardized a Java/c# clone with bash or a string templating language, which isn’t very appealing. But like, if I had to learn it, I’d do so in a month, functionally writing it in a week tops. Learning languages is part of the job, and they all add something to your understanding of paradigms.

load more comments (2 replies)
load more comments (44 replies)