• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mastering Lambdas- Is reactive programming talked about?

 
Tom Nielson
Ranch Hand
Posts: 53
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is for Maurice. Is reactive programming mentioned in your book? Now that Java is becoming more functional and has Stream<T> operations, do you see the RxJava Observable<T> increasingly finding a place in Java land too?

Would love a copy of "Mastering Lambdas" just for the coverage on Spliterators and Stream<T> performance alone. Is creating custom Spliterators discussed as well?
 
Maurice Naftalin
Author
Greenhorn
Posts: 20
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tom

I don't talk about reactive programming in the book. I've only glanced at RxJava, so my answer about this isn't especially well informed I can certainly see how useful lambdas would be in programming Observables, but don't think there's a direct link between the functional style of stream operations and the event-driven model of RxJava. I think the corresponding (but obviously far more primitive) feature in Java is CompletableFuture, which I wrote about here.

I do discuss creating custom Spliterators. But it's quite hard to think of an original example that isn't already covered in the JDK. The one I did manage to think of (it's a big part of Chapter 5) won't be original any more, as they took it and put it into JDK 9!

Regards
Maurice
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!