Host with ease. Fresh kitchen picks for the season.
Discover air fryers, pans, kitchen storage, and more
Buy New
-18% $29.66
$3.99 delivery December 10 - 17
Ships from: Crescent City Trading Co
Sold by: Crescent City Trading Co
$29.66 with 18 percent savings
List Price: $36.00
$3.99 delivery December 10 - 17. Details
In stock
Usually ships within 3 to 4 days.
$$29.66 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$29.66
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Returns
Returnable until Jan 31, 2027
Returnable until Jan 31, 2027
For the 2026 holiday season, eligible items purchased between November 1 and December 31, 2026 can be returned until January 31, 2027.
Quick refund
Usually issued within 24 hours. See exceptions
Shipping fee
May apply, not eligible for free return. See details
Convenient dropoff
At any of our 50,000 US locations.
See return policy
Payment
Secure transaction
Your transaction is secure
We work hard to protect your security and privacy. Our payment security system encrypts your information during transmission. We don’t share your credit card details with third-party sellers, and we don’t sell your information to others. Learn more
$12.08
Pages are clean and are not marred by notes or folds of any kind. ~ ThriftBooks: Read More, Spend Less Pages are clean and are not marred by notes or folds of any kind. ~ ThriftBooks: Read More, Spend Less See less
FREE delivery December 4 - 8. Details
In stock
$$29.66 () Includes selected options. Includes initial monthly payment and selected options. Details
Price
Subtotal
$$29.66
Subtotal
Initial payment breakdown
Shipping cost, delivery date, and order total (including tax) shown at checkout.
Access codes and supplements are not guaranteed with used items.
Ships from and sold by ThriftBooks-Phoenix.
Added to

Sorry, there was a problem.

There was an error retrieving your Wish Lists. Please try again.

Sorry, there was a problem.

List unavailable.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

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

Follow the author

Follow authors for new release and deal updates, plus improved recommendations. See updates from all followed authors in Your Books.
Something went wrong. Please try your request again later.

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

3.3 out of 5 stars (22)

{"desktop_buybox_group_1":[{"displayPrice":"$29.66","priceAmount":29.66,"currencySymbol":"$","integerValue":"29","decimalSeparator":".","fractionalValue":"66","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"CpKggDoNDJofwEUo0EQz41ka%2FLlHdxXENKSrRfauEJpwGfzJjmbkS4hmCi9VtZQGdDIYhszrG%2FoL6F%2Fa5aIe9C8yoBOacXR1OcyuDdxlw%2FmrIO%2BZ9uFoAmxTo2RlEhtNzElMfOsz7RPeBEWA3ai7nVw016kYEpxETnicUL%2FkgxT0DTe0GinjPA%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$12.08","priceAmount":12.08,"currencySymbol":"$","integerValue":"12","decimalSeparator":".","fractionalValue":"08","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"CpKggDoNDJofwEUo0EQz41ka%2FLlHdxXE%2B7xqwTrTEeo0oJ9pCDjRqokhAWt2aAmY8DLWK5pI1YPgoBSlChO4Xxo7%2Bfvjj3PFQ6aSTSWTaznYTzfjhyb2a6ObcyICUngfW2XfG5K0oUXPqJdEjoq1r5uP92f59fsev%2FWty%2FNB72cubz9uI20J8TMaXJq3sLbs","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

Solve real-life programming problems with a fraction of the code that pure object-oriented programming requires. Use Scala and Clojure to solve in-depth problems with two sets of patterns: object-oriented patterns that become more concise with functional programming, and natively functional patterns. Your code will be more declarative, with fewer bugs and lower maintenance costs.

Functional languages have their own patterns that enable you to solve problems with less code than object-oriented programming alone. This book introduces you, the experienced Java programmer, to Scala and Clojure: practical, production-quality languages that run on the JVM and interoperate with existing Java. By using both the statically typed, type-inferred Scala and the dynamically typed, modern Lisp Clojure, you'll gain a broad understanding of functional programming.

For each pattern, you'll first see the traditional object-oriented solution, and then dig into the functional replacements in both Scala and Clojure. These patterns are common in the functional world and deserve to become part of your problem-solving toolkit. On the object-oriented side, you'll see many common patterns, such as Command, Strategy, and Null Object. On the functional side, you'll learn core functional patterns such as Memoization, Lazy Sequence, and Tail Recursion.

Each pattern helps you solve a common programming problem. Working through them gives you a set of patterns you can use to solve problems you come across while writing programs. Finally, you'll learn how to work your existing Java code into new Scala or Clojure projects. You can start off small, adding functional code little by little, so you can complement your existing knowledge with Scala and Clojure as these languages gain popularity on the JVM.

What You Need

Clojure 1.5 and Scala 2.10. Optionally, Eclipse with plugins.

Editorial Reviews

Amazon.com Review

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 easier on-ramp for object-oriented programmers, as they can start working with it in a mainly object-oriented style and transition to a more functional style as they gain more experience. Scala also has a sophisticated static type system, and blends object-oriented and functional programming together. Clojure, on the other hand, is a modern, practical Lisp and comes with the powerful macro system inherent to Lisps.

Both are excellent, general-purpose languages, but I have to confess that I prefer Clojure. I find that I can write clear, concise code it in much more easily than I can in any other language. However, knowing both will give you a very broad understanding of modern languages with a functional flavor.


5 Functional Programming Tips from Michael Bevilacqua-Linn, Author of “Functional Programming Patterns in Scala and Clojure”

  1. Look for opportunities to replace object-oriented patterns with simpler functional language features.
  2. Don't be afraid to create functions that return functions.
  3. Consider composing behaviors using higher order functions rather than building hierarchies.
  4. Reach for higher order functions over collections before recursion.
  5. You often don't need mutability, even when you think you do! Try to find a higher order function that helps you transform an immutable data structure into a new, immutable data structure rather than modifying it in place.

Review

""This book is an absolute gem and should be required reading for anybody looking to transition from OO to FP. It is an extremely well-built safety rope for those crossing the bridge between two very different worlds. Consider this mandatory reading.""--Colin Yates, technical team leader QFI Consulting, LLP

""This book sticks to the meat and potatoes of what functional programming can do for the object-oriented JVM programmer. The functional patterns are sectioned in the back of the book separate from the functional replacements of the object-oriented patterns, making the book handy reference material. As a Scala programmer, I even picked up some new tricks along the read.""--Justin James, developer, Full Stack Apps

""This book is good for those who have dabbled a bit in Clojure or Scala but are not really comfortable with it; the ideal audience is seasoned OO programmers looking to adopt a functional style, as it gives those programmers a guide for transitioning away from the patterns they are comfortable with.""--Rod Hilton, Java developer and PhD candidate at the University of Colorado

Product details

  • Publisher ‏ : ‎ Pragmatic Bookshelf
  • Publication date ‏ : ‎ November 26, 2013
  • Edition ‏ : ‎ 1st
  • Language ‏ : ‎ English
  • Print length ‏ : ‎ 256 pages
  • ISBN-10 ‏ : ‎ 1937785475
  • ISBN-13 ‏ : ‎ 978-1937785475
  • Item Weight ‏ : ‎ 2.31 pounds
  • Dimensions ‏ : ‎ 7.5 x 0.54 x 9.25 inches
  • Best Sellers Rank: #4,304,432 in Books (See Top 100 in Books)
  • Customer Reviews:
    3.3 out of 5 stars (22)

About the author

Follow authors for new release and deal updates, plus improved recommendations. See updates from all followed authors in Your Books.
Michael Bevilacqua-Linn
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Customer reviews

3.3 out of 5 stars
22 global ratings
Sign in to see customer reviews.