Java 8 Lambdas
Functional Programming for the Masses
Publisher: O'Reilly Media
Final Release Date: March 2014
Pages: 182

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
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyJava 8 Lambdas
 
4.8

(based on 12 reviews)

Ratings Distribution

  • 5 Stars

     

    (10)

  • 4 Stars

     

    (2)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (0)

  • 1 Stars

     

    (0)

100%

of respondents would recommend this to a friend.

Pros

  • Concise (10)
  • Easy to understand (10)
  • Well-written (10)
  • Helpful examples (9)
  • Accurate (7)

Cons

    Best Uses

    • Intermediate (12)
    • Expert (5)
    • Novice (4)
      • Reviewer Profile:
      • Developer (11)

    Reviewed by 12 customers

    Sort by

    Displaying reviews 1-10

    Back to top

    Previous | Next »

     
    5.0

    Hands down one of the best tech books!

    By Mega bean

    from London

    About Me Developer

    Verified Reviewer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Intermediate
      • Novice
      • Student

      Comments about oreilly Java 8 Lambdas:

      If you are interested in learning about the new features of Java 8 in particular Lambdas then this is the book for you!

      It is excellently written, with wonderful easy to understand examples. The style is as if your friend has sat you down in the pub and is helping you understand something new.

      There is also some sly humour in there - one of my favourite is when he is talking about multiple inheritance issues and has two interfaces Carriage and Jukebox that both implement a method rock() (obviously with different intents!)

      I surprised myself by how quickly I finished this book (that's how easy to read it is!) But despite this, the author still manages to teach you all the facts and history necessary for you to have a full understanding of the subject.

      I can't rate this book highly enough. I only wish that the author had written more books so that I could buy them all!

       
      5.0

      Terrific book

      By iliks

      from Moscow

      About Me Developer

      Verified Reviewer

      Pros

      • Concise
      • Easy to understand
      • Helpful examples
      • Well-written

      Cons

        Best Uses

        • Intermediate

        Comments about oreilly Java 8 Lambdas:

        I was able to jump start using lambdas in Java 8 right after reading a chapter or two from this book and then gradually learned as I read forward.
        The book is very well-written, with concise and horizon-widening examples (e.g. BDD 'framework' was really interesting).

         
        5.0

        Learn Java 8 and FP in general

        By Easy Da Man

        from Berne, Switzerland

        About Me Developer, Maker

        Verified Buyer

        Pros

        • Accurate
        • Concise
        • Easy to understand
        • Explains Fp In General
        • Helpful examples
        • Well-written

        Cons

          Best Uses

          • Expert
          • Intermediate
          • Student

          Comments about oreilly Java 8 Lambdas:

          Loving Java and using it professionally I stumbled upon this book, and , oh boy, did it deliver. When I first wanted to learn Functional Programming I started to use Scala. But a lot of the books on Scala did not explain FP in a good way... at least for me. But this book explained the mechanics behind FP, not only the application in Java 8.

          So now I understand Java 8 Lambdas, and FP in general. Because of this book.

           
          5.0

          An essential book for JDK 8

          By Daniel Bryant

          from London

          About Me Developer

          Verified Reviewer

          Pros

          • Accurate
          • Concise
          • Easy to understand
          • Helpful examples
          • Well-written

          Cons

            Best Uses

            • Expert
            • Intermediate
            • Novice

            Comments about oreilly Java 8 Lambdas:

            In a nutshell: If you are looking for a concise and high-impact guide to the core features of Java 8, then you've found the right book! Whether you're just getting started with Java, or are a seasoned programmer, this book will help you get to grips with the new JDK 8 essentials such as Lambdas and Streams

            I'm sure many people browsing this book will have heard about the recent (March '14) release of Java JDK 8 and all of the associated excitement about 'the biggest language changes' since JDK 5, and no doubt you are looking to see if any of the current JDK 8 books are worth an addition to your programming bookshelf. My answer to that question for this book is a definite yes.

            The book starts with a whistle-stop tour of the influences for the new language additions, such as Lambdas and Streams (with a nod to the much-vaunted 'functional programming'), and then launches into explaining and demonstrating these key features in a well-paced and logical fashion. The stand-out chapters for me are 3, 4 and 5, in which you get to see many practical examples of where and how the new syntax (and new way of thinking) can save a lot of boilerplate typing and can also lead to much more expressive code.

            As a relatively seasoned Java programmer, the examples and associated explanations had me up-and-running with the new features over the course of a weekend, and left me plenty of room (and motivation) to start experimenting in my own time with my new-found knowledge.

            Data parallelism is covered well in Chapter 6, and the essential topic of testing (and a few associated gotchas with the new Lambda-driven approach) is covered nicely in the following chapter. Another excellent chapter is 'Design and Architectural Principles', which walks through some of the well-known design patterns and demonstrates to you that all of your current pattern knowledge doesn't have to be thrown away when using a functional style of coding. There is also a great section in this chapter discussing how the new language features relate to Uncle Bob's SOLID principles, and if you get chance I would also recommend searching for a companion talk by Richard on the Skillsmatter website.

            Personally I think this book will end up alongside the classic Java books that I recommend to anyone looking to truly master the language, and this list includes such classics as 'Effective Java', 'Java Concurrency In Practice', 'Java Generics and Collections' and 'The Well-grounded Java Developer'. Richard has done a great job of distilling the key elements of the new JDK 8 language feature, and presented them in a concise tour-de-force without skimping on detail. A job well done!

            Disclaimer: I know Richard personally from his good work within the London Java Community, and was also an (unpaid) reviewer for an early version of this book. I have attempted to write an unbiased review, and would be happy to discuss any of my thoughts listed here via personal communication. Anyone who has seen Richard present, or had the pleasure of pair-programming with him, will know he is very much the 'real deal' when it comes to Java wizardry, and so I whole-heartedly support his first foray into the world of publishing!

             
            4.0

            Clear and Fine

            By Michael Pan

            from Taipei, Taiwan

            Verified Buyer

            Pros

            • Concise
            • Easy to understand

            Cons

              Best Uses

              • Intermediate

              Comments about oreilly Java 8 Lambdas:

              Straightforward descriptions,
              Lack of runnable codes for small example.

               
              5.0

              Lambdas for the Day to Day developer

              By Diabolical Developer

              from London, UK

              About Me Developer

              Verified Reviewer

              Pros

              • Accurate
              • Concise
              • Easy to understand
              • Well-written

              Cons

                Best Uses

                • Intermediate
                • Novice

                Comments about oreilly Java 8 Lambdas:

                Like most Java developers who's been embedded in the world of Object Oriented development and design, the new world of functional programming presents learning challenge.

                Thankfully this book doesn't derail the learning experience by trying to explain lambda calculus and category theory but instead takes you through a set of guided explanations that help transition your thinking from the Java of yesterday to the Java of today.

                Within the first 5 chapters or so you'll be up and running with Lambdas and using them in the most common use case scenarios (manipulating collections). I was Map Reducing like a boss before I even knew it and I didn't care whether I really had a handle on the formal terminology or not.

                 
                5.0

                Fantastic introduction to lambdas

                By arkangelofkaos

                from London, UK

                About Me Developer

                Verified Reviewer

                Pros

                • Concise
                • Easy to understand
                • Helpful examples

                Cons

                  Best Uses

                  • Intermediate
                  • Novice

                  Comments about oreilly Java 8 Lambdas:

                  I had the pleasure of doing a technical review for this book and Richard has done an excellent job.
                  This is an ideal book for any Java developer looking to learn how to harness the power of Lambdas in their code.
                  I would particularly recommend it for anyone with limited experience of functional programming and/or closures.

                  (1 of 1 customers found this review helpful)

                   
                  5.0

                  Excellent intro & discussion of Lambdas

                  By Rick G

                  from Alabama

                  About Me Developer

                  Verified Reviewer

                  Pros

                  • Concise
                  • Helpful examples
                  • Well-written

                  Cons

                    Best Uses

                    • Intermediate

                    Comments about oreilly Java 8 Lambdas:

                    I'm a big fan of Functional Programming and a working Java developer at JDK 6 for app server compatibility. That's where I'm coming from.

                    This is an EXCELLENT book for developers who are thoroughly familiar with good ol' Java and want to know more about the promise of fp style programming in the Java ecosystem. The book is exactly as long as it needs to be. Explanations are brief but edifying, code samples are useful. The discussion is a nice mix of Hows and Whys (Whies?), along with some tempting Whats. The attitude of the prose is helpful, conspiratorial and confident.

                    If you're looking for a single-serving introduction to Java 8 Lambdas, I don't think you'll find one better than this. Another excellent resource is Brian Goetz's State of the Lambda, found here: http://cr.openjdk.java.net/~briangoetz/lambda/lambda-state-final.html .

                     
                    5.0

                    Complete and easy to understand

                    By Igor

                    from Birkenhead, UK

                    About Me Developer

                    Verified Buyer

                    Pros

                    • Accurate
                    • Concise
                    • Easy to understand
                    • Straight To The Point
                    • Well-written

                    Cons

                      Best Uses

                      • Expert
                      • Intermediate

                      Comments about oreilly Java 8 Lambdas:

                      This book is what I was expecting. Covers only lambdas, so no other stuff from Java 8 is included, but it does fully explain them.

                      I cannot comment about the exercises as I bought it as early release and they were not complete.

                       
                      4.0

                      Well written book: read it!

                      By Nicola Sereno

                      from Roma, Italy

                      About Me Designer, Developer

                      Verified Buyer

                      Pros

                      • Accurate
                      • Helpful examples
                      • Well-written

                      Cons

                        Best Uses

                        • Intermediate

                        Comments about oreilly Java 8 Lambdas:

                        Well written book to approach Java 8 new features.
                        I would recommend.

                        Displaying reviews 1-10

                        Back to top

                        Previous | Next »

                         
                        Buy 2 Get 1 Free Free Shipping Guarantee
                        Buying Options
                        Immediate Access - Go Digital what's this?
                        Ebook: $33.99
                        Formats:  DAISY, ePub, Mobi, PDF
                        Print & Ebook: $43.99
                        Print: $39.99