PHP object orientation can you create any kind of website and project? [closed]

-1

I accidentally ended up getting a freelance project, and I wanted to get a sense of whether or not I should focus on OO because it is more organized for this project and even to learn. I have a notion about structured, but it is very confusing.     

asked by anonymous 23.11.2017 / 16:37

1 answer

4
  

PHP object orientation can you create any kind of website and project?

Yes, it does. Just like any programming language can solve any problem.

The staff made websites when PHP did not have object-oriented facilities and was doing very well. There are those who do this until today and do not trade for anything.

PHP has many facilities for creating websites. Virtually all languages today have, some even better.

Do not try to non-web projects in PHP , it is too weak for this, it has several disadvantages and problems.

  

I'm new both here and in programming, very new indeed. (originally was in question)

So it would be better to master the easy part that is the imperative, to understand all the basics before venturing into a paradigm that requires a lot of experience to do right.

  

I unintentionally ended up getting a freelance project

If you do not want to, do not take it. If you think you can not do it, do not do it. Especially for the web it is a danger to do something without much mastery of much in computing. So there's so much wrong and insecure around.

  

I wanted to get a sense of whether or not to focus on OO because it is more organized for my project and even to learn.

Only you can say what you should do.

OOP is only more organized for those who know how to organize. And organizing is not easy. In fact what we often see, almost all the time, is the people trying to do OO, not getting and messing up even more. And worse, people think it's doing right and need not improve.

  

I have a notion about structured, but it's pretty confusing.

If you find something very simple confusing, wait to get into something much more confusing.

Actually I notice that many people do not even understand the meaning of structured programming expression. Then anything gets confusing. So much so that 99+% say they make OOP and at least 90% of their code is imperative where OOP has nothing to do. Many people think that they are doing OOP in the other 10% because it creates classes or does something similar. But he does everything wrong. It works, but it does not get what OOP preaches the most.

Addendum

With the advent of OOP in PHP the language has become weird, it has parts that it preaches one thing, in others it preaches another. So much of what OOP could actually help is an illusion and does not help.

There is a current that says OOP is what Smalltalk does, another one says that it is what C ++ does. PHP, for its history, and set of features had everything to adopt the style of Smalltalk, but opted for the C ++ style that requires things PHP does not have.

Not everything needs OOP, most sites do not need it. That's why I do not understand this obsession with the paradigm. The projects that need it are driven by experienced and pragmatic people or it gets bad in some way.

    
23.11.2017 / 17:02