Not a programmer, but is php bad?
In the past, I had read that logins in websites were handled using php and mysql. Is some new/better language popular nowadays?
PHP is not, in itself, inherently bad. The newer versions are performant and if you are a good programmer, you can produce completely fine stuff with it.
The problem is that it’s flexibility leads to sloppy programming, which leads to projects that turn into a cluster. A good example is WordPress. I’d argue WordPress itself is well written. Once you add a dozen or so badly written plugins though it becomes a mess.
A lot of the criticism is the same that JavaScript gets. It’s a loosely typed language. So “1” is different than 1. The first is a string and the second is an integer. So if you add 1+1 you could end up with 11 instead of 2.
Again, this isn’t a problem if you’re a disciplined dev, but we’re not a breed known for our discipline ;)
When I tried Kbin it was slow, which I attributed to badly written PHP code. However, I didn’t do the research to confirm this was the case.
If you tried it a few days ago during the reddit blackouts, it was getting overwhelmed with traffic. The sole owner/operator has largely improved things in short order though. It was much better today.
PHP isn’t bad. Programmers tend to “hate” on languages for some specific reasons or to make themselves feel better over their choice of language. Some of the biggest projects that are running to this day are or were made in PHP. WordPress, for example.
To me, the right tool is the one that accomplishes the job. I even still write VB.NET programs, even though I CAN use other languages just fine. Why do I do that? Because it’s my choice.
Edit: Before anyone tells me something about “slowness” about programs in PHP or whatnot… How many programs do YOU use that are made with Electron, for example?
My understanding is that newer web norms try to decouple the backend and the UI while PHP is more interconnected which can be a bit messy. Some people also just don’t like syntax.
That said, my understanding is that PHP performance and usability has gotten much better with time.
Eeeeehhhhh… I actually could see how this would happen. He’s not being a dick and he fixed it. Unless there’s more to the story… 🤷♂️
My issue with kbin is php. 😂
Not a programmer, but is php bad?
In the past, I had read that logins in websites were handled using php and mysql. Is some new/better language popular nowadays?
Edit: Thank you for the responses.
Since you asked, I’ll give you a nuanced answer.
PHP is not, in itself, inherently bad. The newer versions are performant and if you are a good programmer, you can produce completely fine stuff with it.
The problem is that it’s flexibility leads to sloppy programming, which leads to projects that turn into a cluster. A good example is WordPress. I’d argue WordPress itself is well written. Once you add a dozen or so badly written plugins though it becomes a mess.
A lot of the criticism is the same that JavaScript gets. It’s a loosely typed language. So “1” is different than 1. The first is a string and the second is an integer. So if you add 1+1 you could end up with 11 instead of 2.
Again, this isn’t a problem if you’re a disciplined dev, but we’re not a breed known for our discipline ;)
When I tried Kbin it was slow, which I attributed to badly written PHP code. However, I didn’t do the research to confirm this was the case.
If you tried it a few days ago during the reddit blackouts, it was getting overwhelmed with traffic. The sole owner/operator has largely improved things in short order though. It was much better today.
PHP isn’t bad. Programmers tend to “hate” on languages for some specific reasons or to make themselves feel better over their choice of language. Some of the biggest projects that are running to this day are or were made in PHP. WordPress, for example.
To me, the right tool is the one that accomplishes the job. I even still write VB.NET programs, even though I CAN use other languages just fine. Why do I do that? Because it’s my choice.
Edit: Before anyone tells me something about “slowness” about programs in PHP or whatnot… How many programs do YOU use that are made with Electron, for example?
My understanding is that newer web norms try to decouple the backend and the UI while PHP is more interconnected which can be a bit messy. Some people also just don’t like syntax.
That said, my understanding is that PHP performance and usability has gotten much better with time.
All of this is true. :)