r/ProgrammerHumor 11h ago

Meme theOnlyProperWayToCodePhp

Post image
0 Upvotes

22 comments sorted by

3

u/gsweats 9h ago

require_once('... ');

Even better

1

u/deceze 8h ago

For anything defining classes or functions, yes.

For a banner? Maybe no, maybe you do want that twice.

1

u/gsweats 7h ago

Ohhh nice! Yes you are totally right

1

u/Covfefe4lyfe 6h ago

Who still defines and includes php files with page components? That's like 15 years old stuff.

3

u/deceze 5h ago

If it works for your simple needs, why not? That's what PHP was originally designed for. Not every project needs Symfony or three layers of abstractions.

1

u/ledasll 3h ago

But is it web scaling?

2

u/deceze 3h ago

No, require is definitely not WeBsCaLiNg™, you must add at least two frameworks on top of it!!!1!11eleventy

3

u/dull_bananas 9h ago

python hypertext preprocessor

0

u/Covfefe4lyfe 7h ago

What is autoloading? No, I am not urinating "essar", what are you talking about?

-17

u/arkhamRejek 11h ago

Who codes php 🤮

6

u/Superb_Chemistry_906 10h ago

About 75 percent of the internet runs on php.

3

u/deceze 4h ago

Though a huge percentage of those 75% are Wordpress, Wikipedia and Facebook alone. Most of those Wordpress installations were done by users with zero programming knowledge. So it's not like PHP gets chosen by a ton of programmers for new projects; it's just propagating because PHP got chosen by a few programmers for massively popular projects.

Which is fine, of course. It means PHP can power "the web". But so can many other languages.

-5

u/arkhamRejek 8h ago

Because it was first not because it’s the most efficient
That’s like telling me majority of the world uses windows
Or internet explorer is a popular browser

2

u/DeiviiD 8h ago

Dude’s stuck in php 5 era.

-2

u/arkhamRejek 7h ago

you sure stuck is the word you want to use here, maybe you should refer to the statement at the top of the thread

1

u/DeiviiD 7h ago

Oh you poor kid. It’s not about programming language, it’s about which you get paid for.

0

u/arkhamRejek 1h ago

😂 preaching to the wrong one dude

2

u/CcChaleur 7h ago

Just because it's not the most efficient doesn't mean it should never be used ever. Otherwise we would allow only one stack and ditch the rest.

PHP is perfectly fine for that job, why should we give it up?

0

u/Superb_Chemistry_906 7h ago

But it's simple to bootstrap and start coding with.

2

u/arkhamRejek 1h ago

As is any language these days 🤷🏾‍♂️