PHP Classes

Procedural Code

Recommend this page to a friend!

      PHP Classes blog  >  Why is it better to d...  >  All threads  >  Procedural Code  >  (Un) Subscribe thread alerts  
Subject:Procedural Code
Summary:Procedural Code is not synonymus with global code
Author:Kees van Breukelen
Date:2012-03-21 22:20:30
Update:2012-03-21 23:15:33

  1. Procedural Code   Reply   Report abuse  
Kees van Breukelen - 2012-03-21 22:25:56
Thank you for your very informative article. I have a minor disagreement concerning procedural code. When object oriented programming was "invented" there suddenly was a need to distinguish the old way of programming. As the old method always tried to reflect business procedures the term procedural was given to this method. Although the description global applies to this style of programming I think the distinction is relevant as the awareness of business procedures if often sadly lacking. Just because the object oriented programming model has so many advantages does not mean that procedures are suddenly irrelevant (not that you implied this). Thank you also for the opportunity to respond, Kees.

  2. Re: Procedural Code   Reply   Report abuse  
Manuel Lemos - 2012-03-21 23:15:33 - In reply to message 1 from Kees van Breukelen
Actually you are agreeing with me. :-)

What I said is that some people call global code procedural code but I disagree.

OOP with classes is also procedural code because you need to call procedures/functions.

Global code is the use of variables and functions/procedures in the global space.