X

Functional Programming Patterns in Scala and Clojure: Write Lean Programs for the JVM

Product ID : 1880008


Galleon Product ID 1880008
Model
Manufacturer
Shipping Dimension Unknown Dimensions
I think this is wrong?
-
2,657

*Price and Stocks may change without prior notice
*Packaging of actual item may differ from photo shown

Pay with

About Functional Programming Patterns In Scala And

Q&A with Michael Bevilacqua-Linn, author of "Functional Programming Patterns in Scala and Clojure" Q. Why did you write "Functional Programming Patterns"? A. Languages with a functional flavor are getting more and more mainstream, and I wanted to write something that would help folks with a lot of traditional OO pattern knowledge start to make the transition. Q. I don't know Scala or Clojure. How hard would it be for me to understand the examples in the book? A. This book is written for programmers who are new to Scala and Clojure, but who have significant experience with Java and object-oriented patterns. One of its goals is to help ease experienced object-oriented programmers into a more functional style. Q. What can I do with functional patterns that I couldn't do before? A. It's not so much what you can do, as what you can do better! Functional programming, and the patterns that go along with it, tends to be more declarative than imperative programming, so you can solve problems with code that's both more straightforward and shorter. The functional focus on immutable data reduces bugs in large programs, especially ones involving concurrency. Q. Functional programming has no place in the object-oriented world, does it? A. While object-oriented programming and functional programming are often seen as opposite paradigms, the truth is a bit more complex. Even Java is getting more of a functional style with Java 8's Lambdas. Scala explicitly blends object-oriented and functional styles. While Clojure is explicitly not object-oriented, it does borrow many good ideas from the object-oriented world, such as polymorphism and programming to interfaces. Q. Which one should I use? Scala or Clojure? What are the differences and which would be easier to start with? A. Scala tends to provide an easie