←back to thread

PHP 8.5

(stitcher.io)
201 points brentroose | 4 comments | | HN request time: 0.797s | source
Show context
nalekberov ◴[] No.45991317[source]
in 2025 developers who are programming in PHP should still deal with str_replace, htmlspecialchars, nl2br (the list goes on and on).

(no, I don't want my IDE to babysit me, and ideally I don't want to use IDE at all)

replies(1): >>45991570 #
1. mikedelfino ◴[] No.45991570[source]
What do you mean developers should deal with functions like those? They're used when necessary, yes, just like any function. And no IDE is required. I'm really puzzled.
replies(1): >>45991850 #
2. nalekberov ◴[] No.45991850[source]
> And no IDE is required.

What else to say, good luck.

You didn't get the anecdote, that's probably because you haven't worked with PHP (long enough).

I will give hint: inconsistency.

replies(1): >>45992762 #
3. mikedelfino ◴[] No.45992762[source]
Either working with PHP for 21 years is not long enough or simply too long. I honestly think these small inconsistencies are irrelevant in the big picture of building something complex. Like you said, programmers should deal with them. It just doesn't sound like a big deal.
replies(1): >>45992989 #
4. nalekberov ◴[] No.45992989{3}[source]
> I honestly think these small inconsistencies are irrelevant in the big picture of building something complex.

Big picture is PHP is a poor tool. I enumerated only one annoyance about writing software on PHP, 80% of all websites on the web being built on it doesn't make it any better. Some companies keep building on it, because:

1. They started writing the codebase in PHP, now they are "locked" (cost of switching to another language is extremely high)

2. Hiring PHP developers usually costs a lot less (at least 20%) than say Java/Python developers

People keep arguing that, for seasoned developers it doesn't matter what tool one chooses. Then what is the point of choosing a tool over another, if you gotta check the docs constantly for inconsistencies? (I'm sorry, you gotta use IDE anyways)

With that said, there is no ideal language, however PHP is single most annoying language after JavaScript.