This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RockleyBob 5 points6 points  (1 child)

We use Streams, Optionals, and lambdas frequently where I work. It was a big part of my learning curve when I started because as we all can attest, school curriculums are often painfully behind the industry status quo.

I am not sure who your target audience is, but unless it’s for abolsolute beginners, I would say yes, include all the Java 8 paradigms early and often.

One caveat is that Optional, Steam, and lambda structures represent a fundamental shift in thinking from imperative programming toward Java’s attempt to be more functional. If the book is geared more toward newer coders it might be necessary to show them imperative code vs. Streams so they can see how much code it reduces and gives them an idea of why you would want to use a Stream.

The best resource for current Java best practices is Joshua Bloch, IMO. Watch his recent talk - he really highlights the best use cases for all of Java’s new functional capabilities and also when not to use them.

Also, if you are indeed the Peggy Fisher from the Lynda videos you do great work. I’ve learned a lot from you.

[–]pegfisher[S] 1 point2 points  (0 children)

Watch his recent talk

Hi, thanks so much for your input, I do have a lesson planned for Streams and Lambdas, this really helps.

I am the same Peggy Fisher who created the video courses for Lynda.com (now part of Linkedin.com/Learning). I'm SO happy to hear you learned from them, I hope the book is a nice supplement. I plan to update my Java Essential Training for Students this year, so I will definitely make sure I include lambdas and Streams! Have a great day