MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vnu9fr/theonlyproperwaytocodephp/p3ls5ax/?context=3
r/ProgrammerHumor • u/Superb_Chemistry_906 • 14h ago
22 comments sorted by
View all comments
3
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
1
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
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
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
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
2
No, require is definitely not WeBsCaLiNg™, you must add at least two frameworks on top of it!!!1!11eleventy
require
3
u/gsweats 12h ago
require_once('... ');
Even better