I view it a little differently although my CS backround is old (graduated
in 1983 with MS)., Procerdural is a style which is baed upon a language,
COBOL for example ios a procedural based language. C++ is an object based
language. Not sure if this helps

Happy holidays to all and to all a good night
Chuck


On Thu, Dec 21, 2017 at 4:06 PM, Don Lapin via 4D_Tech <4d_tech@lists.4d.com
> wrote:

> Hello,
>
> There seem to be at least two different "programming paradigms":
>
> - Procedural programming, where the subroutines make changes to the
> system; and
>
> - Functional programming, where called methods only return results to the
> calling method (ie, the called method does not perform any work which
> changes "state" of the system itself).
>
> There is some discussion of functional programming on Wikipedia.
>
> I looked back on forum messages and didn't find a discussion on this
> topic. Is it too abstract to be practical?
>
> When I'm creating something in 4D, I use both approaches. When some task
> runs to thousands of lines of code, I break it up into subroutines. Usually
> the subroutines perform the actual work - calculations which update field
> or array values.
>
> In some instances, I will write a routine which returns the work product
> without making other changes. But usually the task becomes more complicated
> when it must return its work, rather than simply doing the work.
>
> 4D does not seem to lend itself to the functional approach.
>
> When designing something new, do you give any thought to using one or the
> other approach? Do you force yourself to only return values to a calling
> method? Or do these paradigms represent a distinction of no practical
> significance?
>
> Thanks,
> Don
>
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************




-- 
-----------------------------------------------------------------------------------------
 Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
 Informed Solutions, Inc.
 Brookline, MA 02446 USA Registered 4D Developer
       Providers of 4D, Sybase & SQL Server connectivity
          http://www.informed-solutions.com
-----------------------------------------------------------------------------------------
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law.  These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited.  Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to