Functional Programming in Java, Second Edition (Pragmatic Bookshelf)
Most Active This Week
Most Active This Month
Most Active This Year
Most Active Last Three Years
Most Active Over Three Years
Just some thoughts on being hard on exceptions in functional languages.
On p. 167 we read:
Functional style code is amazing, concise, ...
New
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
Nothing surprising here, just adapting the form to the other examples.
Ah yes, compute() now returns an immutable list in all cases.
pa...
New
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
Suggestions for some JUnit test improvements in Refactoring the Traditional “for” loop p 181 ff
Below code for testing the original/cla...
New
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
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
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
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
The same remarks apply as for “Refactoring the Traditional for Loop”
No init()
Negative tests which apply for input less than 1900, res...
New
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
Nothing special here, same changes as formerly, but we are using people.isEmpty() instead of people.size() == 0 for even better legibilit...
New
As usual, but the original code to be refactored was just too evil and had to be fixed.
package chapter11;
import org.junit.jupiter.api...
New
Although now aged by 34 years:
“The Conception, Evolution, and Application of Functional Programming Languages”
by Paul Hudak (1989-09-...
New
The same remarks apply as for “Refactoring the Traditional for Loop”
No init()
Classes under test implement a common interface that is...
New
Publisher:
Pragmatic Bookshelf
Latest in Functional Programming in Java, Second Edition
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!









