Functional Programming in Java, Second Edition (Pragmatic Bookshelf)

Latest Threads About This Book Top

ndierauf
@venkats Appears to be a broken link in Appendix 3 a(Web Resources) on Page 234, for article to “Tell, Don’t Ask”. Link goes to: https:...
New
Athazo
@venkats In the section “Iterating a String” found in chapter 3 “Strings, Comparators, and Filters” there seems to be a typo: “But we w...
New
New
New
New
New
New
New
New
New
dtonhofer
Although now aged by 34 years: “The Conception, Evolution, and Application of Functional Programming Languages” by Paul Hudak (1989-09-...
New
dtonhofer
On page 15, we read: In this example we’re sending a function, price -> price * 0.9, as an argument to mapToDouble The function bein...
New
dtonhofer
In Chapter 9, p.164 the stream is parallelized in 1 step. This inspired my to write some test some code to call a task “in parallel”: ...
New
dtonhofer
On page 179: First, imperative style was the way of life in Java and most programmers are very familiar with that style, since that was...
New
dtonhofer
As traditional , the “impure” code of page 207 in the form of a pretend test. (Doesn’t “impure” refer to performing uncontrolled side ef...
New
dtonhofer
A question to highlight is: Is there a way to make sure that a stream is NOT parallel, and make this evident in the code? As in: strea...
New
dtonhofer
I have been thinking about how to collect “two adjacent elements” in a stream, for example transform a stream of Long into a stream of Pa...
New
dtonhofer
On page 200, the code can use boxed() instead of the (somewhat mysterious) maptoObject(e -> e) One should also reveal to the reader t...
New
dtonhofer
One should refer the user to the official java.util.stream package (Stream API) documentation. First appearance of the API in Java 8 (Ma...
New
dtonhofer
Joe asks: Are stream pipelines the same as ‘RxJava’ Not quite. Although Java 8 Streams and RxJava (“Reactive Extensions in Java”) are bo...
New
dtonhofer
On page 174: StreamAPI Should probably be Stream API Also on page 174: blow up with an exception Suggesting to change this wh...
New
dtonhofer
It turns out that Try<T> can be ameliorated by judicious application of subclassing: no need to distinguish by actual type in the s...
New
dtonhofer
As for FinanceData on page 91, the code for AirportInfo uses the suspect and soon-to-be-deprecated java.net.URL. Let’s use java.net.URI i...
New
dtonhofer
Just some thoughts on being hard on exceptions in functional languages. On p. 167 we read: Functional style code is amazing, concise, ...
New
dtonhofer
We read: We are using the amazing feature of the switch expression of Java [Java 12]. If you’re using an older version of Java, you may...
New
New
dtonhofer
On p.27, after “Found 2 names”, we read: The filter() method returns an iterator just like the map() method does, But it really return...
New
dtonhofer
The filter stream operation appears on several places in Chapter 2 and Chapter 3, so it’s difficult to say where to put this, but there s...
New
dtonhofer
SimpleTimer.java package chapter7; import java.util.function.Supplier; public abstract class SimpleTimer { public record Result&lt...
New
dtonhofer
Nothing special: package chapter7; import org.junit.jupiter.api.Test; import java.util.List; import java.util.function.Supplier; impor...
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

Most Active Last Three Years Top

PragmaticBookshelf
Learn and apply the powerful streams API and lambda expressions to create highly expressive, concise, and maintainable functional style c...
New
jozshor00
@venkats On page 21: For each price from the prices list that passes through the filter(), the mapToInt() method invokes the provided ...
New
dtonhofer
On p.27, after “Found 2 names”, we read: The filter() method returns an iterator just like the map() method does, But it really return...
New
dtonhofer
On page 91, we use a short method to request a stock ticker, class FinanceData However, this method is based on java.net.URL which has a...
New
dtonhofer
We read: Recursion is a powerful and charming way to solve problems. It’s highly expressive—using recursion we can provide a solution t...
New
dtonhofer
In several places, the method String.toUpperCase() is misspelled as String.toUppercase() sometimes via the :: method reference, Stri...
New
dtonhofer
Just some thoughts on being hard on exceptions in functional languages. On p. 167 we read: Functional style code is amazing, concise, ...
New
dtonhofer
We find this code on page 61, for ListSelectFiles.java final String[] files = new File("fpij").list(new java.io.FilenameFilter()...
New
dtonhofer
As for FinanceData on page 91, the code for AirportInfo uses the suspect and soon-to-be-deprecated java.net.URL. Let’s use java.net.URI i...
New
dtonhofer
On page 148, “An optimization problem” we read: We’ll employ a solution for a company that buys rods at wholesale and sells them at reta...
New
dtonhofer
@venkats At 2/3rd of the page, we read; Within the computeMaxProfit() method, we perform our task, and when it’s time to recurse we ro...
New
dtonhofer
As previously, the code uses List<String> names = Arrays.asList(...); which yields an “array-backed list”, rather than List<S...
New
dtonhofer
On page 90, CalculateNAVTest.java: public class CalculateNAVTest { @Test public void computeStockWorth() { final CalculateN...
New
dtonhofer
On page 174: StreamAPI Should probably be Stream API Also on page 174: blow up with an exception Suggesting to change this wh...
New
dtonhofer
I have been thinking about how to collect “two adjacent elements” in a stream, for example transform a stream of Long into a stream of Pa...
New

Most Active Over Three Years Top

New
dtonhofer
It turns out that Try<T> can be ameliorated by judicious application of subclassing: no need to distinguish by actual type in the s...
New
New
dtonhofer
The filter stream operation appears on several places in Chapter 2 and Chapter 3, so it’s difficult to say where to put this, but there s...
New
Athazo
@venkats In the section “Iterating a String” found in chapter 3 “Strings, Comparators, and Filters” there seems to be a typo: “But we w...
New
dtonhofer
We read: We are using the amazing feature of the switch expression of Java [Java 12]. If you’re using an older version of Java, you may...
New
ndierauf
@venkats Appears to be a broken link in Appendix 3 a(Web Resources) on Page 234, for article to “Tell, Don’t Ask”. Link goes to: https:...
New
dtonhofer
A question to highlight is: Is there a way to make sure that a stream is NOT parallel, and make this evident in the code? As in: strea...
New
dtonhofer
As traditional , the “impure” code of page 207 in the form of a pretend test. (Doesn’t “impure” refer to performing uncontrolled side ef...
New
dtonhofer
Although now aged by 34 years: “The Conception, Evolution, and Application of Functional Programming Languages” by Paul Hudak (1989-09-...
New
New
New
New
New
New

Latest in Functional Programming in Java, Second Edition

View all Functional Programming in Java, Second Edition threads ❯

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Use the coupon code "devtalk.com" to get 35% off any eBook published by PragProg!

Related Portals