• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Functional Programming Paradigm

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How does this paradigm fits with OOP, DOP etc..

 
Author
Posts: 31
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FP, just like Data-Oriented Programming, focuses on data and its transformations. In FP, data is immutable, so your functions become easier to comprehend—they just take inputs and return outputs, and no other changes are possible. This in turn allows you to model your domain more naturally because you are not constrained to objects that encapsulate some internal state and expose behaviors.

 
Rishi Chopra
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What would this book be about ? Core Functional programming concepts that can be applied to languages like Scala, Haskell?
 
Michał Płachta
Author
Posts: 31
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried to show only cor FP concepts that are not only available in Scala, Haskell, but also in F#, and even Java or Python (like pattern matching that has just been introduced for both!)
 
Marshal
Posts: 80085
412
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a book showing how Java® can be used as a functional language. Here it is.
 
Ranch Hand
Posts: 691
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so the book is not depend on specific language.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:I have a book showing how Java® can be used as a functional language. https://www.manning.com/books/functional-programming-in-java.


Do you recommend this book?
 
Campbell Ritchie
Marshal
Posts: 80085
412
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Sander Hollaar wrote:. . . Do you recommend this book?

Yes.
 
Rishi Chopra
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Michał Płachta wrote:I tried to show only cor FP concepts that are not only available in Scala, Haskell, but also in F#, and even Java or Python (like pattern matching that has just been introduced for both!)



It would be great to read this book.
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic