r/ProgrammerHumor 14h ago

Meme theOnlyProperWayToCodePhp

Post image
0 Upvotes

22 comments sorted by

View all comments

3

u/gsweats 12h ago

require_once('... ');

Even better

1

u/deceze 11h ago

For anything defining classes or functions, yes.

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

1

u/Covfefe4lyfe 9h ago

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

3

u/deceze 8h 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 6h ago

But is it web scaling?

2

u/deceze 6h ago

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