Talk:Procedural programming: Difference between revisions

Content deleted Content added
m Archiving 16 discussion(s) to Talk:Procedural programming/Archive 1) (bot
Tag: Replaced
m Reverted edit by Nkosinat (talk) to last version by Graham87
 
(10 intermediate revisions by 7 users not shown)
Line 1:
{{Talk header|archive_bot=Lowercase sigmabot III|archive_age=365}}
{{WikiProject banner shell|class=Start|
{{WikiProject Computing |class=Start |importance=Mid |science=y |science-importance=Mid |software=y |software-importance=Mid |early-comp=y |early-comp-importance=Mid}}
{{WikiProject Computer science |class=start |importance=mid}}
}}
{{User:MiszaBot/config
| algo = old(365d)
Line 9 ⟶ 13:
| minthreadsleft = 0
}}
{{WikiProject Computing |class=Start |importance=Mid |science=y |science-importance=Mid |software=y |software-importance=Mid |early-comp=y |early-comp-importance=Mid}}
{{WikiProject Computer science |class=start |importance=mid}}
 
== Comparison with object-oriented programming ==
 
I would like to see less of the editorial slant in favor of OOP in that topic.
For example,
instead of using phrases like "it's undeniable that OOP is better at"
please use phrases like "Many people believe that OOP is better at".
Also, I would like to see some more information about how procedural programming
can be superior to OOP.
 
== This article should be removed. Procedural abstraction is prevalent in every programming paradigm ==
 
There is no procedural paradigm as such. Any algorithm is a sequence of steps transforming an input (possibly null) to some answer, it does not matter if such language is imperative or declarative. Imperative languages compute by mutating the state of memory, a program is a composition of such instructions with the help of control statements, functional programming does the same by composing functions.
OO programming created a lot of confusion, because instead of writing code composed with instructions, in OO it is supposed that objects are sending messages to other objects, those messages order to perform some procedure called object's method. The main difference is an exacerbated use of encapsulation which induce an anthropomorphic approach to the problem.
 
'''Is procedural programming implementing algorithms in a procedural language?'''
That's probably the source of confusion.
 
'''What can be said if procedures are implemented with coroutines?''' <!-- Template:Unsigned IP --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/2806:106E:B:53E6:F9:F69F:2ED7:3753|2806:106E:B:53E6:F9:F69F:2ED7:3753]] ([[User talk:2806:106E:B:53E6:F9:F69F:2ED7:3753#top|talk]]) 08:48, 2 September 2022 (UTC)</small> <!--Autosigned by SineBot-->