117
submitted 1 year ago by WatTyler to c/programming@beehaw.org

I don't know if it's due to over-exposure to programming memes but I certainly believed that no one was starting new PHP projects in 2023 (or 2020, or 2018, or 2012...). I was under the impression we only still discussed it at all because WordPress is still around.

Would a PHP evangelist like to disabuse me of my notions and make an argument for using PHP for projects such as Kbin in this day and age?

you are viewing a single comment's thread
view the rest of the comments
[-] werni@kbin.social 15 points 1 year ago

Choosing a language for a project because it's "cool" is so stupid

[-] Hexorg@beehaw.org 2 points 1 year ago

Let's try not to insult other people’s preferences.

[-] ipkpjersi@lemmy.one 1 points 1 year ago

In a way though he's right, picking a language because it is "cool" is the wrong reason to pick a language. You should be looking at other things like performance, scalability, security, functionality and see if those facets align with the requirements for your project.

[-] Hexorg@beehaw.org 2 points 1 year ago

When doing a project where those things matter - sure. But if it’s your hobby protect you can do anything

[-] ipkpjersi@lemmy.one 1 points 1 year ago

Yeah, that's fair enough, I'll agree to that.

[-] Hexorg@beehaw.org 2 points 1 year ago* (last edited 1 year ago)

I think the challenge arises when your hobby project gets funding and thousands of people start using it... But at that point the codebase is likely locked into many previously made decisions. Locked in as in - it would take too much effort to change it.

[-] pjb@lemmy.spacestation14.com 0 points 1 year ago

Yeah. People really should be allowed to make things in whatever technology they prefer, but at the same time I can't help but wince when I see infrastructure such as Mastodon or Matrix Synapse being written in slow inefficient languages like Ruby and Python.

It's really bad for the strength of decentralized networks like Fedi when I have a friend telling me "I wish I didn't set up Mastodon because my tiny instance needs multiple gigabytes of RAM". I might have set up a Matrix homeserver myself by now if Synapse wasn't Python and notoriously slow. I immediately discarded Kbin as a choice (among other reasons) because it's PHP and Lemmy is Rust.

Always easy to say "hindsight is 20/20", but still.

[-] Hexorg@beehaw.org 1 points 1 year ago

Well you can’t know what you don’t know. So if you start a project and foresee thousands of people use it in scalable manner - yeah you’ll use something faster but then your project might die before getting “in the wild”… but if you’re just nerding out with your friends you just want to have fun… and then suddenly thousands of people want to use your project… there’s just no winning

[-] aksdb@feddit.de 1 points 1 year ago* (last edited 1 year ago)

No it's not. If I work on something in my free time / voluntarily, I want to have fun. I want to enjoy it. If PHP pisses me off but Rust thrills me, of course I choose Rust. That's the freedom you have if you start a project. That there are more maintainers and even a bunch of contributors underlines that it was the right choice.

this post was submitted on 16 Jun 2023
117 points (100.0% liked)

Programming

13360 readers
34 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS