Joe Soltzberg

50%
Flag icon
In the absence of explicit types, careful naming of lambda parameters is essential to the readability of stream pipelines. Note also that word alphabetization is done in a separate alphabetize method. This enhances readability by providing a name for the operation and keeping implementation details out of the main program. Using helper methods is even more important for readability in stream pipelines than in iterative code because pipelines lack explicit type information and named temporary variables.
Effective Java
Rate this book
Clear rating
Open Preview