this post was submitted on 22 Feb 2024
917 points (95.7% liked)

Programmer Humor

19623 readers
21 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 18 points 9 months ago (4 children)

Is PHP becoming irrelevant? It still comprises the vast majority of web pages out there. Maybe that has been going down but with he amount of competing languages and systems out there, that is to be expected.

Either way, it's an awesome language, happily been using it for decades now

[–] [email protected] 22 points 9 months ago (1 children)

PHP is horrible, I hate it, and I will not elaborate. Good day, sir.

[–] [email protected] 2 points 9 months ago (1 children)

Well that is an excellent argument if I ever heard one...

[–] [email protected] 2 points 9 months ago (1 children)
[–] [email protected] 2 points 9 months ago (1 children)

Good day to you too, how have you been?

[–] [email protected] 2 points 9 months ago (1 children)

Not too bad. Just chillin'. How 'bout you?

[–] [email protected] 1 points 8 months ago

Very fine! Nice cool day today.

[–] [email protected] 14 points 9 months ago (3 children)

Either way, it’s an awesome language, happily been using it for decades now

Mind taking a moment to share why you like it? I am not very familiar with it.

[–] [email protected] 11 points 9 months ago (4 children)

I'm not the one you asked, but what I like isn't really about PHP itself, but the fact that I can get dirt cheap hosting with PHP and MySQL. Every time I want to create a small "app" that makes some manual task easier it's very useful to create something I can access from the internet.

Python is really useful for stuff like that too, but (in my experience) not as easy and cheap to use as an web app.

For example I go to dinner with some friends every month and we always forget who's turn it is to choose and book a restaurant. So I just made this PHP page that shows the current and next 2 months with a name. So we always use that to see who's turn it is.

[–] [email protected] 4 points 9 months ago (1 children)

What makes hosting with PHP cheaper than with python?

[–] [email protected] 1 points 9 months ago (1 children)

I don't know, maybe it's because PHP used to be the default web based language? I just buy hosting, I don't sell it...

[–] [email protected] 1 points 9 months ago (1 children)

What do you use for hosting? I'm looking for a good host and highly budget conscious.

[–] [email protected] 1 points 9 months ago

I'm Dutch and use a local Dutch company, I also wanted a .nl tld

[–] [email protected] 1 points 9 months ago
[–] [email protected] 1 points 9 months ago (1 children)

Though I like that you use PHP, I don't think there is such a thing as PHP hosting, or python hosting? Maybe I'm not understanding what you're saying here?

[–] [email protected] 1 points 9 months ago

When you pay a company and they provide you with a domain (you choose) and give you a webserver, some disk space, a database etc.

I pay about 30 euros a year for 5 websites. They are all very basic (either some php stuff I made, or WordPress). These websites have very few visitors so the hosting specs don't really matter. All these websites have a specific domain name, some disk space, and a database.

For this price they offer PHP and MySQL. So it's not a dedicated server where I'm root and can Install other stuff.

[–] [email protected] 1 points 9 months ago

I’m not the one you asked, but what I like isn’t really about PHP itself, but the fact that I can get dirt cheap hosting with PHP and MySQL.

Oh, wow, I looked a little into this and hosting really is dirt cheap! That is a benefit that I genuinely was not expecting.

[–] [email protected] 5 points 9 months ago (1 children)

... And it's one of the languages everybody craps on. Like, I've seen people compare JavaScript favourably to it.

[–] [email protected] 1 points 9 months ago (1 children)

Yeah they do, with no real reason, really. Oohh, "some functions use underscore and others don't!" And? It's not a problem, really. Every language has baggage from the past and PHP kept it for stability, I'm happy with that.

[–] [email protected] 1 points 9 months ago

“some functions use underscore and others don’t!”

That's weird, but more of an aesthetics issue than anything. JavaScript will actually decide to behave oddly for no reason; if that's it it's still king of the shitbirds.

[–] [email protected] 2 points 9 months ago

Quite early on the eyes, powerful, fast to build and rolk out projects, about. A billion libraries with all the functions you'll ever need. People both about it because it has some language quirks from way back in the beginning, I see it as stability. I don't know how node is now but I remember a few years back where every bug fix came accompanied not only by 10 new bugs but also a bunch of interface changes that immediately broke everything. Every. Single. Damn. Time.

Having said that, it under very active development and has been majorly improved over the years. Dumb design choices are no long available and right now it's quite easy to work securely with it.

Beyond the "but these two functions should have similar naming but they don't!" argument, that with a good editor doesn't matter anyway, there isn't really a good argument out there not to use it.

[–] [email protected] 10 points 9 months ago* (last edited 9 months ago) (1 children)

Depends on how you're judging relevance.

93% of webpages could be PHP because of Wordpress, but that doesn't necessarily mean there's a lot of PHP developers.

[–] [email protected] 1 points 9 months ago

If that hypothetical 93% is WordPress, there's still a huge demand for PHP developers to maintain that and the plugins and so

[–] [email protected] 4 points 9 months ago (2 children)

Perhaps it was before Facebook came along

[–] [email protected] 7 points 9 months ago

Wikimedia, WordPress, Drupal....

[–] [email protected] 6 points 9 months ago

Nah, something like 93% of all websites on the planet were PHP when Facebook came around, thanks to WordPress.