4

Is PHP still a relevant language in today's day and age? I know a LOT of languages and it just never occurred to me to learn this one, because anyone I've ever been aware of writing a backend these days would either choose Node or one of several compiled languages. Lemmy uses Rust for it's backend which is highly desireable, many people would have used Golang in the backend world if they desired performance and compilation, otherwise I don't know why you wouldn't just use Typescript. Makes it hard to contribute to IMO.

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

Is PHP still a relevant language in today's day and age?

Yes, why wouldn't it be. It's been in active development and PHP 8 is actually pretty decent for fast prototyping (which this site is).

[-] JollyTheRancher@lemmy.world 0 points 1 year ago

Has pretty great performance nowadays too. I’ve seen benchmarks showing it performing 3x faster on web stuff than python (obviously there are faster choices than either and Python works well with a lot of non web stuff that PHP can’t do well) - PHP deservedly earned it’s bad rap, but they have really turned things around and now I love using it.

[-] EthicalAI@kbin.social 0 points 1 year ago

Idk anything about it but from reading some of the code it looks like Java but with weird syntax. Not a big forced OOP fan.

[-] rimu@kbin.social 0 points 1 year ago
[-] EthicalAI@kbin.social 0 points 1 year ago

Good to know, maybe I’ll pick up a book. I try to learn a new language every year.

[-] rimu@kbin.social 1 points 1 year ago

When I say "optional", I mean you can just create a filename.php and start putting lines of code into it, and it'll work fine. But, these days OOP is favored by most and pretty much everyone is using it. So if you are working on code that other people have written, classes are everywhere.

A lot of Wordpress code is non-OOP, though.

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 04 Jul 2023
4 points (100.0% liked)

/kbin meta

2 readers
1 users here now

Magazine dedicated to discussions about the kbin itself. Provide feedback, ask questions, suggest improvements, and engage in conversations related to the platform organization, policies, features, and community dynamics. ---- * Roadmap 2023 * m/kbinDevlog * m/kbinDesign

founded 1 year ago