BIBLIO is the largest independent book marketplace in the world, with over 100 million books.

Skip to content

Functional Programming, Simplified: (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified: (Scala Edition) Paperback - 2017

by Alvin Alexander

Add to wish list

Reader reviews for Functional Programming, Simplified: (Scala Edition)

From the publisher

If you've had trouble trying to learn Functional Programming (FP), you're not alone. In this book, Alvin Alexander -- author of the Scala Cookbook and former teacher of Java and Object-Oriented Programming (OOP) classes -- writes about his own problems in trying to understand FP, and how he finally conquered it.

What he originally learned is that experienced FP developers are driven by two goals: to use only immutable values, and write only pure functions. What he later learned is that they have these goals as the result of another larger goal: they want all of their code to look and work just like algebra.

While that sounds simple, it turns out that these goals require them to use many advanced Scala features -- which they often use all at the same time. As a result, their code can look completely foreign to novice FP developers. As Mr. Alexander writes, "When you first see their code it's easy to ask, 'Why would anyone write code like this?'"

Mr. Alexander answers that "Why?" question by explaining the benefits of writing pure functional code. Once you understand those benefits -- your motivation for learning FP -- he shares five rules for programming in the book:

  • All fields must be immutable ('val' fields).
  • All functions must be pure functions.
  • Null values are not allowed.
  • Whenever you use an 'if' you must also use an 'else'.
  • You won't create OOP classes that encapsulate data and behavior; instead you'll design data structures using Scala 'case' classes, and write pure functions that operate on those data structures.

In the book you'll see how those five, simple rules naturally lead you to write pure, functional code that reads like algebra. He also shares one more Golden Rule for learning:

  • Always ask "Why"?

Lessons in the book include:

  • How and why to write only pure functions
  • Why pure function signatures are much more important than OOP method signatures
  • Why recursion is a natural tool for functional programming, and how to write recursive algorithms
  • Because the Scala 'for' expression is so important to FP, dozens of pages explain the details of how it works
  • In the end you'll see that monads aren't that difficult because they're a natural extension of the Five Rules
  • The book finishes with lessons on FP data modeling, and two main approaches for organizing your pure functions

As Mr. Alexander writes, "In this book I take the time to explain all of the concepts that are used to write FP code in Scala. As I learned from my own experience, once you understand the Five Rules and the small concepts, you can understand Scala/FP."

(Alvin Alexander (alvinalexander.com) wrote the popular Scala Cookbook for O'Reilly, and also self-published two other books, How I Sold My Business: A Personal Diary, and A Survival Guide for New Consultants.)

Details

  • Title Functional Programming, Simplified: (Scala Edition)
  • Author Alvin Alexander
  • Binding Paperback
  • Pages 782
  • Volumes 1
  • Language ENG
  • Publisher Createspace Independent Publishing Platform
  • Publication date 2017-12
  • ISBN 9781979788786 / 1979788782
  • Weight 2.93 lbs (1.33 kg)
  • Dimensions 10 x 7 x 1.56 in (25.40 x 17.78 x 3.96 cm)
  • Category Computers - Languages / Programming

About the author

Alvin took the circuitous route to software development. He managed to get a degree in Aerospace Engineering from Texas A&M University, while all he was really trying to do was play baseball. Once he became a practicing engineer, he realized he liked software and programming more than engineering. So in approximate order he taught himself Fortran, C, Unix, network administration, sed, awk, Lisp, Perl, Java, JavaScript, Python, Ruby, JRuby, PHP, and Scala. During this process he started a software consulting firm, grew it to fifteen people, sold it, and moved to Alaska. After returning to the "Lower 48," he self-published two books ("How I Sold My Business: A Personal Diary," and "Zen and the Art of Consulting"), and then wrote the "Scala Cookbook" for O'Reilly. He also created alvinalexander.com, which receives millions of page views every year.

More Copies for Sale

Functional Programming, Simplified: (Scala Edition)

Functional Programming, Simplified: (Scala Edition)

by Alexander, Alvin

  • Used
  • Very good
  • Paperback
Condition
Very good
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
2
Seller
Item price
A$17.51
A$16.47 Delivery to USA

Show details

Description:
Paperback. Very Good.
Add to wish list
Item price
A$17.51
A$16.47 Delivery to USA
Functional Programming, Simplified : (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified : (Scala Edition)

by Alvin Alexander

  • Used
  • Very good
  • Paperback
Condition
Very good
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
1
Seller
Item price
A$16.71
Free Delivery to USA

Show details

Description:
CreateSpace Independent Publishing Platform, 2017. Paperback. Very Good. Disclaimer:A copy that has been read, but remains in excellent condition. Pages are intact and are not marred by notes or highlighting, but may contain a neat previous owner name. The spine remains undamaged.
Add to wish list
Item price
A$16.71
Free Delivery to USA
Functional Programming, Simplified: (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified: (Scala Edition)

by Alexander, Alvin

  • Used
  • Good
  • Paperback
Condition
Good
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
1
Seller
Item price
A$16.71
Free Delivery to USA

Show details

Description:
Createspace Independent Publishing Platform, 2017. Paperback. Good. Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less.Dust jacket quality is not guaranteed.
Add to wish list
Item price
A$16.71
Free Delivery to USA
Functional Programming, Simplified: (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified: (Scala Edition)

by Alvin Alexander

  • Used
  • Good
  • Paperback
Condition
Good
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
1
Seller
Item price
A$16.71
Free Delivery to USA

Show details

Description:
CreateSpace Independent Publishing Platform, 2017. Paperback. Good. Former library book; Pages can have notes/highlighting. Spine may show signs of wear. ~ ThriftBooks: Read More, Spend Less.Dust jacket quality is not guaranteed.
Add to wish list
Item price
A$16.71
Free Delivery to USA
Functional Programming, Simplified: (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified: (Scala Edition)

by Alexander, Alvin

  • Used
  • Paperback
  • first
Condition
Used
Edition
First Edition
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
1
Seller
Item price
A$22.98
Free Delivery to USA

Show details

Description:
2017-12-07. First Edition. paperback. Used: Good. 7.00x1.76x10.00. Buy with confidence. Excellent Customer Service & Return policy.
Add to wish list
Item price
A$22.98
Free Delivery to USA
Functional Programming, Simplified: (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified: (Scala Edition)

by Alexander, Alvin

  • Used
  • Good
  • Paperback
Condition
Good
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
1
Seller
Item price
A$24.77
Free Delivery to USA

Show details

Description:
CreateSpace Independent Publishing Platform. paperback. Good. 7.1x1.7x10. Buy with confidence. Excellent Customer Service & Return policy.
Add to wish list
Item price
A$24.77
Free Delivery to USA
Functional Programming, Simplified: (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified: (Scala Edition)

by Alexander, Alvin

  • Used
  • Good
  • Paperback
Condition
Good
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
1
Seller
Item price
A$61.43
Free Delivery to USA

Show details

Description:
paperback. Good. Access codes and supplements are not guaranteed with used items. May be an ex-library book.
Add to wish list
Item price
A$61.43
Free Delivery to USA
Functional Programming, Simplified: (Scala Edition)
Stock photo: cover may vary

Functional Programming, Simplified: (Scala Edition)

by Alexander, Alvin

  • New
  • Paperback
  • first
Condition
New
Edition
First Edition
Binding
Paperback
ISBN 10 / ISBN 13
9781979788786 / 1979788782
Quantity available
6
Seller
Item price
A$69.64
Free Delivery to USA

Show details

Description:
2017-12-07. First Edition. paperback. New. 7.00x1.76x10.00. Buy with confidence. Excellent Customer Service & Return policy.
Add to wish list
Item price
A$69.64
Free Delivery to USA