comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: The state of functional programming
Date: Wed, 28 Jul 2010 18:40:11 +0200
Date: 2010-07-28T18:40:09+02:00	[thread overview]
Message-ID: <g24nvegdi17t$.1azxwn1rwjixi$.dlg@40tude.net> (raw)
In-Reply-To: 2adc4d8d-210e-429c-8188-9b1e99c2718e@d17g2000yqb.googlegroups.com

On Wed, 28 Jul 2010 08:24:08 -0700 (PDT), J.s wrote:

> As I am continuing my freshman year of college majoring in cs it seems
> I stand alone with the view of abuse or at least over-use of OOP
> concepts and the knowledge of functional programming in general.

OOP is over-used? And knowledge of FP is what?

> Of the many people I have met who are currently or have recently
> graduated with a cs degree, very few have ever learned any functional
> programming or anything other than c# and java.

Maybe

> What recently got my attention though was an article I found on f#
> from one of Microsoft developer's blogs  [http://blogs.msdn.com/b/
> dsyme/archive/2010/04/12/f-2-0-released-as-part-of-visual-
> studio-2010.aspx]. In it Don Syme (a developer of f#) explains what
> both f# is to other programmers, but the part that disturbed me was
> where Syme implies functional programmers are not "focus(ed) on ...
> the process of writing code":
> 
> "Q: What is functional programming?
> 
> Functional programming languages express ideas at a higher level and
> allow users to focus on the challenge of problem solving instead of
> the process of writing code.

This claim was made for each and every programming paradigm. It need to be
substantiated, and especially for FP, which does not look very promising at
all.

> A programming language like F# provides a
> οΏ½tool bagοΏ½ of functions that users can pick from to solve their
> problem.

I.e. the decomposition is procedural, welcome back in 60's...

> Functional programming includes concepts such as
> immutability to reduce dependencies between components,

How is immutability to reduce dependence? An immutable argument must be
taken from somewhere. And immutable results does not even exist. He
probably meant side effects. It is to be shown that procedural
decomposition to reduce need in side effects. I doubt it does. And the
whole computing is about side effects. Programming is how side effects can
be engineered.

> generics to
> express solutions that work over many different kinds of data,

Different kinds of data? He probably meant types. Ah, but types smell OOP,
right? I hope it is not about passing integer where real expected?

GP is about dealing with sets of types. To substantiate the claim it is to
show how types and their sets can be described and manipulated within FP,
easier, quicker, safer, more maintainable etc.

> and
> functions as values to make it easy to abstract units of a solution
> into reusable pieces.

Function as a value of what? And what is the difference? Maybe a side
effect of the call? Anyway I don't see how values can be reusable.

> Does anyone have any thoughts on this?

FP is yet another attempt to make programming declarative. That won't
happen until last programmer dies.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  parent reply	other threads:[~2010-07-28 16:40 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2adc4d8d-210e-429c-8188-9b1e99c2718e@d17g2000yqb.googlegroups.com>
2010-07-28 16:16 ` The state of functional programming Georg Bauhaus
2010-07-28 19:37   ` Kulin Remailer
2010-07-28 23:34     ` deadlyhead
2010-07-28 16:31 ` Jeffrey R. Carter
2010-07-28 23:35   ` J.s
2010-07-28 16:40 ` Dmitry A. Kazakov [this message]
2010-07-28 17:47   ` (see below)
2010-07-28 18:40     ` Dmitry A. Kazakov
2010-08-03  3:15     ` Randy Brukardt
2010-08-03 13:57       ` (see below)
2010-07-28 19:09   ` Warren
2010-07-28 19:35     ` Dmitry A. Kazakov
2010-07-29 15:20       ` Warren
2010-07-29 17:00         ` Dmitry A. Kazakov
2010-07-29 19:19           ` Warren
2010-07-29 20:40             ` Dmitry A. Kazakov
2010-07-29 21:01               ` Warren
2010-07-29 23:09                 ` Georg Bauhaus
2010-07-30  8:50                 ` Dmitry A. Kazakov
2010-07-30  9:17                   ` Niklas Holsti
2010-07-30  9:29                     ` Dmitry A. Kazakov
2010-07-29 20:46             ` Niklas Holsti
2010-07-30 13:52               ` Warren
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox