Not at all! It's as though I've said "a screwdriver is often a better tool than a hammer", but you're only interested in hanging picture frames.
I'm saying that (for a given problem) functional programming will give you - a better fit to the problem's domain - fewer lines of code - more maintainable code - faster execution but... I'm also saying that for a different problem, procedural programming will give you these, as will object-oriented programming, or declarative programming. I can't say that one of these approaches is inherently better, the choice depends entirely on your domain, and often a hybrid is the best way. Having said all that, there is one area where functional and declarative styles are consistently taking home the cup: - scalability across CPUs/cores/nodes/hosts/shader pipelines/etc. the model of mapping over elements of immutable data structures really does scale nicely all the way up to 100,000s of parallel operations. On 12 July 2010 00:21, Wildam Martin <[email protected]> wrote: > On Sun, Jul 11, 2010 at 13:36, Kevin Wright <[email protected]> > wrote: > > declarative paradigm: > > - SQL for database queries > > - JavaFX for GUI work > > - XSL-T for "document" processing > > functional paradigm: > > - highly concurrent + stable telecoms switches using Erlang > > - reactive programming against a 2D scene graph > > (Scala+fresca): http://www.ganguin.net/frp2d.pdf > > - MapReduce > > What do you want to say? That you can write more performant code with > functional paradigm? > If so, why? > > -- > Martin Wildam > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<javaposse%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- Kevin Wright mail/google talk: [email protected] wave: [email protected] skype: kev.lee.wright twitter: @thecoda -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
