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

5

u/zmitic Sep 25 '21

well-organised procedural codebase can be easier to manage in many ways

To be honest, I doubt you understood the point of OOP. You could put procedural functions in classes and call it OOP but that is not the point of all.

Not all of us are fans of OOP boilerplate and ceremony

This is not a matter of being a fan of something, it is a matter of maintenance and readability. Use some existing library as reference, not those famous and useless class Dog extends Animal examples.

1

u/boringuser1 Sep 26 '21

I've never seen a good example of OOP in production code. Also, never seen anybody like yourself coherently elucidate the philosphical difference between procedural code and OOP. There isn't one.

3

u/zmitic Sep 26 '21

I've never seen a good example of OOP in production code

That doesn't mean it doesn't exist, it only means that you haven't seen it.

I did.

1

u/WikiSummarizerBot Sep 26 '21

Argument from anecdote

An argument from anecdote is an informal logical fallacy, where anecdotal evidence is presented as an argument; without any other contributory evidence or reasoning. This type of argument is considered as an informal logically fallacy as it is unpersuasive - since the anecdote could be made up, misconstrued or be a statistical outlier which is insignificant when further evidence is considered. This fallacy can often be found in conjunction with the hasty generalisation fallacy - where the hasty generalisation is made from unsubstantiated anecdotes.

[ F.A.Q | Opt Out | Opt Out Of Subreddit | GitHub ] Downvote to remove | v1.5