Java 8 Lambdas: Functional Programming For The Masses

Java 8 Lambdas: Functional Programming For The Masses

Posted by leeshkay | Published a year ago

With 54 ratings

By: Richard Warburton

Purchased At: $22.93 (42 used & new offers)

If you’re a developer with core Java SE skills, this hands-on book takes you through the language changes in Java 8 triggered by the addition of lambda expressions. You’ll learn through code examples, exercises, and fluid explanations how these anonymous functions will help you write simple, clean, library-level code that solves business problems.

Lambda expressions are a fairly simple change to Java, and the first part of the book shows you how to use them properly. Later chapters show you how lambda functions help you improve performance with parallelism, write simpler concurrent code, and model your domain more accurately, including building better DSLs.

  • Use exercises in each chapter to help you master lambda expressions in Java 8 quickly
  • Explore streams, advanced collections, and other Java 8 library improvements
  • Leverage multicore CPUs and improve performance with data parallelism
  • Use techniques to “lambdify” your existing codebase or library code
  • Learn practical solutions for lambda expression unit testing and debugging
  • Implement SOLID principles of object-oriented programming with lambdas
  • Write concurrent applications that efficiently perform message passing and non-blocking I/O
The first half of the book gives a concise and clear explanation of the basics of Java 8 Functional programming. However, the author appears to have rushed through the 2nd half, especially in design patterns and concurrency, with sections of in-cohesive explanations of patchy code sections of otherwise interesting examples. It would have been OK if complete samples code is included in the code-download site, but some of the more interesting samples are completely missing from the downloaded zip files. For example, the Domain Specific Language from chapter 8 and the Non-block IO Chat program from chapter 9 are no where to be found.

- rivka_hernandez

Awesome book if you have no functional programming background. It covers everything from lambda expressions, streams, collectors, and concurrency in an understandable, practical way.

If you are new to Java functional programming be sure to check out the RxJava library as well. It provides an even more robust approach to chaining higher order functions than Streams.

- janessa_price

I'd already been dipping my toes in the water with lambdas and wanted to broaden my knowledge of the new Java 8 features. This book gets to the point quickly and provides good takeaway advice for when and how to leverage them. On top of that, the author does a good job relating the features to each other so the topics build upon each other and earlier concepts get reinforced.

- avery_wilson

The better guide to these new features, just what I needed for my project

- savannah_nguyen

Good book. Helpful to understand it. Not massively thick either so you can skim through it to bits you'd find useful.

- logan_jones

If you want to speed yourself up in java lambdas and you are a Java programmer - This book is a must read

- alisha_cook

This books cover all aspect of java8 in concise manner. One of the good book I read on java 8.

- rosalyn_williams

Short, concise and well written book.

- hana_kim

Very good description, very good, short and clear examples. It's ideal to learns Java 8 features (not only lambdas but Stream API and smaller things like default and static interface methods, Optional class,...). I was reading that book on Kindle and there are only small layout problem for examples but because they are short it's not a problem at all. As a problem I could mention that there are excercises after each chapter but solutions are on github which is fine when you work on PC but Kindle is not the best to work this way.

- eden_price

Very good book. I'm a freelance Java developer with 15 years experience and needed a solid understanding of Lambdas and the other Java 8 features. I found this book extremely easy to read and although the subject matter can be technically challenging it was a breeze. I couldn't wait to use the Java 8 features in my code. Highly recommended read.

- eve_scott

Easy to follow, good examples, and useful quizzes at the end of each chapter. The graphical representations of certain features helps to understand.

- jaxon_baker

Very well written and practical. Good to see coverage of popular libraries as well as best practices. Recommended to everyone, from novice to expert.

- kelvin_walker

I've been doing Java for quite some time now, and this book really showed me good examples and a lot of things about lambdas. I usually thought that Java is missing something like C#s LINQ, but this book tought me otherwise.

While lambdas are not the solution for everything, good solutions for nearly everything are presented.

I would recommend this book for everyone who considers himself "advanced" in Java. This is not to learn java and for nothing else than someone who likes lambdas.

- sawyer_white

What an excellent exposition of lambdas! This book is so good that it not only convinced me to try out some examples on my own but to go back and look at things I have done in Groovy that could better use this approach.

One thing that is not obvious from the title is the importance of Streams to the use of lambdas. I suggest the title of the book be changed to mention this, e.g. Java 8 Lambdas and Streams.

- mallory_gomez

A obra adota um estilo conciso e didático. A abordagem teórica é clara e direta sem, no entanto, negligenciar pontos relevantes para o aprendizado, e o autor fornece exercícios de fixação que estimulam o leitor a buscar as respostas por sí mesmo e a ir além. Richard Warburton promete na capa do livro "programação funcional para as massas" e consegue honrar o compromisso.

- ezequiel_green

Customers Also Bought