Items related to Functional Programming, Simplified: (Scala Edition)

Functional Programming, Simplified: (Scala Edition) - Softcover

  • 4.24 out of 5 stars
    120 ratings by Goodreads
 
Image Not Available

Synopsis

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.”

Please note that because of the limits on how large a printed book can be, the paperback version does not include all of the chapters that are in the Kindle eBook. The following lessons are not in the paperback version:

  • Grandma’s Cookies (a story about pure functions)
  • The ScalaCheck lessons
  • The Type Classes lessons
  • The appendices

Because those lessons didn’ fit in the print version, they have been made freely available online.

(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.)

"synopsis" may belong to another edition of this title.

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.

"About this title" may belong to another edition of this title.

Buy Used

Condition: Fair
The book is complete and readable... View this item

Shipping: FREE
Within U.S.A.

Destination, rates & speeds

Add to basket

Search results for Functional Programming, Simplified: (Scala Edition)

Seller Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Softcover

Seller: Bay State Book Company, North Smithfield, RI, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: acceptable. The book is complete and readable, with all pages and cover intact. Dust jacket, shrink wrap, or boxed set case may be missing. Pages may have light notes, highlighting, or minor water exposure, but nothing that affects readability. May be an ex-library copy and could include library markings or stickers. Seller Inventory # BSM.HYLM

Contact seller

Buy Used

US$ 8.26
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Paperback

Seller: HPB-Red, Dallas, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Good. Connecting readers with great books since 1972! Used textbooks may not include companion materials such as access codes, etc. May have some wear or writing/highlighting. We ship orders daily and Customer Service is our top priority! Seller Inventory # S_393172037

Contact seller

Buy Used

US$ 5.00
Convert currency
Shipping: US$ 3.75
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Softcover

Seller: Goodwill Books, Hillsboro, OR, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: Good. Signs of wear and consistent use. Seller Inventory # 3IIT2J000Q1H_ns

Contact seller

Buy Used

US$ 5.28
Convert currency
Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Paperback

Seller: BooksRun, Philadelphia, PA, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Very Good. Ship within 24hrs. Satisfaction 100% guaranteed. APO/FPO addresses supported. Seller Inventory # 1979788782-8-1

Contact seller

Buy Used

US$ 13.67
Convert currency
Shipping: FREE
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Paperback

Seller: WorldofBooks, Goring-By-Sea, WS, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Very Good. The book has been read, but is in excellent condition. Pages are intact and not marred by notes or highlighting. The spine remains undamaged. Seller Inventory # GOR011864405

Contact seller

Buy Used

US$ 8.09
Convert currency
Shipping: US$ 7.33
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 2 available

Add to basket

Seller Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Softcover

Seller: Goodbooks Company, Springdale, AR, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: good. Has a sturdy binding with some shelf wear. May have some markings or highlighting. Used copies may not include access codes or Cd's. Slight bending may be present. Seller Inventory # GBV.1979788782.G

Contact seller

Buy Used

US$ 15.95
Convert currency
Shipping: US$ 3.00
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used paperback

Seller: Half Price Books Inc., Dallas, TX, U.S.A.

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

paperback. Condition: Very Good. Connecting readers with great books since 1972! Used books may not include companion materials, and may have some shelf wear or limited writing. We ship orders daily and Customer Service is our top priority! Seller Inventory # S_427407207

Contact seller

Buy Used

US$ 15.99
Convert currency
Shipping: US$ 3.49
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Seller Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Softcover

Seller: WeBuyBooks, Rossendale, LANCS, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: Good. Most items will be dispatched the same or the next working day. A copy that has been read but remains in clean condition. All of the pages are intact and the cover is intact and the spine may show signs of wear. The book may have minor markings which are not specifically mentioned. A few small stains. Seller Inventory # wbs6690145071

Contact seller

Buy Used

US$ 13.82
Convert currency
Shipping: US$ 10.27
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
Used Paperback

Seller: Greener Books, London, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Used; Very Good. **SHIPPED FROM UK** We believe you will be completely satisfied with our quick and reliable service. All orders are dispatched as swiftly as possible! Buy with confidence! Greener Books. Seller Inventory # 4836238

Contact seller

Buy Used

US$ 11.50
Convert currency
Shipping: US$ 20.92
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Alexander, Alvin
ISBN 10: 1979788782 ISBN 13: 9781979788786
New Paperback

Seller: Grumpys Fine Books, Tijeras, NM, U.S.A.

Seller rating 4 out of 5 stars 4-star rating, Learn more about seller ratings

Paperback. Condition: new. Prompt service guaranteed. Seller Inventory # Clean1979788782

Contact seller

Buy New

US$ 52.81
Convert currency
Shipping: US$ 4.25
Within U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

There are 1 more copies of this book

View all search results for this book