Coding Problem :
Can I do everything or change anything? Do I have limits on structured programming that I do not have in OOP?
Answer 1 :
Yes, any programming language can do everything . Now each paradigm has its way of organizing, so you can not always do it the same way. Moreover, with some languages and use of certain paradigms it is possible that specific tasks are easier to do in one paradigm than in another.
Contrary to popular belief, not everything looks better object-oriented.
I’d like to say there’s no dichotomy between object orientation and structured programming . Structured programming refers to the algorithm itself, and OOP does not. Actually what you should be calling structured is the imperative paradigm . The fact is that we program imperatively, and of course, structurally most of the time. In some aspects of the data structure and how to organize the parts of the algorithms, but not the algorithm itself, we do object-oriented. It amazes me how people want so much to do OO or say they do without even knowing what it means.
There is a structured and unstructured imperative. Today, practically only the structured one is used, unless it is using Assembly.
Particularly I think OOP in PHP makes little sense, but today almost everyone uses PHP where it should not. If it’s to do something like this and really like PHP, then go to Hack .
- Functional Programming and Object Oriented Programming. What are they and what are their main differences?
- Terminology Meaning: “Object Oriented”
- PHP mixes object-oriented and procedural language
- Advantages of using Object Oriented PHP? Where to use?
- Is my code object-oriented?
- What is the overhead of using object orientation?
If you search it has a lot more related.
Answer 2 :
Answer 3 :
Answer 4 :
Answer 5 :
Answer 6 :
Answer 7 :
Answer 8 :
Answer 9 :