Difference between a structured program and an object oriented one in PHP

-1

Suppose we have the same program but one is structured and another is object oriented. 1.-Is the difference in the matter of redimiento much? 2. Is it badly seen or badly done that a structured system be made in these times? I just got started on this, thanks for your time: D

    
asked by Bruno 22.09.2018 в 23:25
source

1 answer

0
  • Talking about performance is quite ambiguous, it depends on the size of the program you want to perform, if it can be done with relatively few lines of code (around -100), the structured one is more readable and solvable at the level of errors that if object-oriented programs, in addition to avoiding creations of classes and the use of objects, which normally carry, several data that in a small program do not get to take advantage. Otherwise, POO is your answer for its versatility.

  • The POO paradigm is an evolution of structured programming (which dates from 1960) and therefore more modern, it does not rule out that you can take advantage of structured programming. However, it was designed for programs from another era and with another perspective, today any object-oriented language or that allows this variant relatively, will be worked by programmers who will know OOP in 99% of cases, so it is probably not very well received, can also reduce the usability and scalability of your code.

  • answered by 22.09.2018 в 23:37