aspose file tools*
The moose likes Other Languages and the fly likes why haskell (functional programming languages)  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "why haskell (functional programming languages)  ?" Watch "why haskell (functional programming languages)  ?" New topic
Author

why haskell (functional programming languages) ?

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

hi ranchers,

firstly i don't know whether this room is the right place for this question or not.. please forward if it is not..

my Question is why functional programming language are surrounding in the world while imperative programming languages are already take over?

why i ask this question because after some days my lecturer start teaching me this language and i am just confused that why we use functional programming language and where is useful?

Thanks in Advance..
[ March 05, 2007: Message edited by: Saif uddin ]

Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8873
    
    8

There's an old saying that goes: "when the only tool you have is a hammer, all your problems look like nails". If all you learned was imperitave programming, you'd tend to approach all your problems with a procedural mindset. There are some problems which are easier to approach from a functional point of view (map traversal and processing come to mind). Some areas of study tend to use functional programming over imperitave (AI, for example). You never know what kinds of problems you will have to solve, and you would not be well served with a toolbox that only had a hammer in it.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
M Easter
Ranch Hand

Joined: Feb 11, 2007
Posts: 133
Learning unusual computer languages have a lot in common with learning new spoken languages (e.g. French, Japanese, Hindi).

(a) seeing abstract patterns in language gives one a broader view. I still remember the first time a professor told the class we would use a language that didn't have a "for/while loop" (APL, Lisp, etc) -- and yet it was a full Turing machine.

(b) not only does one have more tools, but one has more concepts -- some _ideas_ are very hard to express in one language, and yet are easier in another. _But_ this understanding can help you use any language in new ways. A "function object" is a powerful tool in Java, and yet has ties to functional languages. Also true for the current debate on closures. Learning Ruby can make you a better Java developer.


M Easter
Software Composer - http://codetojoy.blogspot.com
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Thanks for response.. guys.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: why haskell (functional programming languages) ?