Re: Curious about "functional programming"

2018-01-05 Thread brianpowers via 4D_Tech
I believe that there is a place for incorporating functional programming aspects into 4d programming. As the size of a given function increases, we have a tendency to grow the number of outside dependencies. (Database calls, Non-locally scoped variables,etc...) Code that has a large number of

Re(4): Curious about "functional programming"

2017-12-22 Thread Don Lapin via 4D_Tech
Thanks John. - Don > >> On Dec 22, 2017, at 1:44 AM, Don Lapin via 4D_Tech <4d_tech@lists. >4d.com> wrote: >> >> Do the difficulties of a functional approach apply to almost any >database-type application, or is it more the issues with error handling >in 4D? > >Difficulties implementing a

Re: Re(2): Curious about "functional programming"

2017-12-22 Thread John DeSoi via 4D_Tech
> On Dec 22, 2017, at 1:44 AM, Don Lapin via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Do the difficulties of a functional approach apply to almost any > database-type application, or is it more the issues with error handling in > 4D? Difficulties implementing a functional approach arise

Re(2): Curious about "functional programming"

2017-12-21 Thread Don Lapin via 4D_Tech
Hi John, Do the difficulties of a functional approach apply to almost any database-type application, or is it more the issues with error handling in 4D? Are there other circumstances where a functional approach works well, or is it simply an ideal? Do object-oriented languages

Re: Curious about "functional programming"

2017-12-21 Thread John DeSoi via 4D_Tech
> On Dec 21, 2017, at 3:06 PM, Don Lapin via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > 4D does not seem to lend itself to the functional approach. Completely true. Changing the database is non-functional. You could try to enforce this discipline, but I think it would be difficult to get

Re: Curious about "functional programming"

2017-12-21 Thread Charles Miller via 4D_Tech
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

Curious about "functional programming"

2017-12-21 Thread Don Lapin via 4D_Tech
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