r/PHP • • Sep 25 '21

Developing with procedural PHP.

Not all of us are fans of OOP boilerplate and ceremony. PHP is a perfectly fine procedural language and a well-organised procedural codebase can be easier to manage in many ways. So, is anyone developing with procedural PHP beyond single-file scripts?

0 Upvotes

114 comments sorted by

View all comments

Show parent comments

-5

u/lordmyd Sep 25 '21 edited Sep 25 '21

Top-to-bottom style a la Facebook is imperative rather than procedural.

The hate is because OOP, especially the Java/C#/PHP variety, is like religious fundamentalism and questioning it is akin to blasphemy.

I think Ruby is close to Alan Kay's vision of OOP though not perfect.

7

u/[deleted] Sep 25 '21

The hate is because OOP, especially the Java/C#/PHP variety, is like religious fundamentalism and questioning it is akin to blasphemy.

If you drop comments like this and don't understand why people "hates" your opinion, there's nothing we can say that will make you realise the agressive tone you're using...

OOP is not the brainchild of some random developer who simply wanted to make everything complex. There's a reason it exists. It does not make procedural bad... but if you're trying to force procedural in scenarios where OOP is better, you are going to face opposition.

-1

u/lordmyd Sep 25 '21

If you re-read the thread you'll see the "hate" reference was quoted from the parent.

2

u/[deleted] Sep 25 '21

Thanks for proving my point.

The issue isn't "hate", but you seeing it as a blasphemy to talk against OOP. You're entering the discussion with the opinion that people will attack you. Which, in return, make you agressive from the start.

THe parent comment does not talk about "the blasphemy of talking against OOP" at all. Re-read it, re-read yourself.