| 000 | 05459nam a22003015 4500 | ||
|---|---|---|---|
| 003 | GSU | ||
| 005 | 20260703095106.0 | ||
| 008 | 260121s2023 ncua||||o|||||001 0|eng|d | ||
| 020 | _z9781680509793 (paperback) | ||
| 040 |
_aSEK _beng _cGSU _dGSU _erda |
||
| 050 |
_aQA76.73.J38 _bSUB |
||
| 100 | 1 |
_aSubramaniam, Venkat _eauthor |
|
| 245 | 1 | 0 |
_aFunctional programming in Java / _cVenkat Subramaniam. |
| 250 | _aSecond edition. | ||
| 264 | 1 |
_aRaleigh, North Carolina : _bThe Pragmatic Programmers, LLC, _c©2023 |
|
| 300 |
_axix, 247 pages ; _c24 cm |
||
| 336 |
_atext _btxt _2rdacontent |
||
| 337 |
_aunmediated _bm _2rdamedia |
||
| 338 |
_avolume _bnc _2rdacarrier |
||
| 504 | _aIncludes bibliographical references and index. | ||
| 505 | 8 | _aCover -- Table of Contents -- Foreword to the First Edition -- Acknowledgments -- Preface -- Who's This Book For -- What's in This Book -- Java Version Used in This Book -- How to Read the Code Examples -- Online Resources -- 1. Hello, Lambda Expressions! -- Change the Way You Think -- The Big Gains of Functional-Style Code -- Why Code in the Functional Style? -- Evolution, Not Revolution -- A Little Sugar to Sweeten -- Wrapping Up -- 2. Using Collections -- Iterating through a List -- Transforming a List -- Finding Elements -- Skipping Values -- Terminating Iterations -- Reusing Lambda Expressions -- Using Lexical Scoping and Closures -- Picking an Element -- Reducing a Collection to a Single Value -- Joining Elements -- Wrapping Up -- 3. Strings, Comparators, and Filters -- Iterating a String -- Implementing the Comparator Interface -- Multiple and Fluent Comparisons -- Using the collect Method and the Collectors Class -- Listing All Files in a Directory -- Listing Select Files in a Directory -- Listing Immediate Subdirectories Using flatMap -- Watching a File Change -- Wrapping Up -- 4. Transforming Data -- Computing Statistics -- When to Use map vs. flatMap -- Checking for Criteria -- Partitioning a Collection -- Counting Occurrences -- Summing Values -- Using flatMapping and filtering -- Teeing Operations -- Wrapping Up -- 5. Designing with Lambda Expressions -- Separating Concerns Using Lambda Expressions -- Delegating Using Lambda Expressions -- Decorating Using Lambda Expressions -- A Peek into the default Methods -- Creating Fluent Interfaces Using Lambda Expressions -- Wrapping Up -- 6. Working with Resources -- Cleaning Up Resources -- Using the Execute Around Method Pattern to Clean Up Resources -- Managing Locks -- Creating Concise Exception Tests -- Wrapping Up -- 7. Being Lazy -- Delayed Initialization -- Lazy Evaluations. | |
| 505 | 8 | _aLeveraging the Laziness of Streams -- Creating Infinite, Lazy Collections -- Wrapping Up -- 8. Optimizing Recursions -- Using Tail-Call Optimization -- Speeding Up with Memoization -- Wrapping Up -- 9. Composing Functions with Lambda Expressions -- Using Function Composition -- Using MapReduce -- Taking a Leap to Parallelize -- Wrapping Up -- 10. Error Handling -- Taking a Holistic View of Error Handling -- Exception Handling and Imperative Style -- Checked Exceptions and Functional Style with Streams -- Exception Handling vs. Functional Style -- Dealing with It Downstream -- Handling Failures in Functional Programming -- Wrapping Up -- 11. Refactoring to Functional Style -- Creating a Safety Net for Refactoring -- Refactoring the Traditional for Loop -- Refactoring More Complex Loops -- Refactoring Unbounded Loops -- Refactoring for-each -- Refactoring to Rework the Logic -- Refactoring File Processing -- Refactoring Data Grouping Operations -- Refactoring Nested Loops -- Real-World Refactoring -- Wrapping Up -- 12. Functional Programming Idioms -- Don't Write Dense Lambda Expressions -- Prefer Method References -- Properly Structure the Functional Pipeline -- Keep Separate Conditions in Separate Filters -- Provide Good Domain-Specific Parameter Names -- Use Type Inference for Parameters -- Side Effects in Functional Pipelines -- Wrapping Up -- 13. Bringing It All Together -- Essential Practices to Succeed with the Functional Style -- Performance Concerns -- Adopting the Functional Style -- A1. Starter Set of Functional Interfaces -- A2. Syntax Overview -- A3. Web Resources -- Bibliography -- Index -- - SYMBOLS - -- - A - -- - B - -- - C - -- - D - -- - E - -- - F - -- - G - -- - H - -- - I - -- - J - -- - K - -- - L - -- - M - -- - N - -- - O - -- - P - -- - R - -- - S - -- - T - -- - U - -- - V - -- - W - -- - Z -. | |
| 520 | _aFunctional Programming in Java, Second Edition by Venkat Subramaniam is a comprehensive guide for Java developers looking to enhance their programming skills using functional programming principles. The book provides a detailed exploration of Java's lambda expressions and streams, offering practical examples to illustrate their use in creating more clear, concise, and reliable code. It includes chapters on functional idioms, refactoring to a functional style, and optimizing recursions, among others. The author's goal is to equip developers with the tools to write better software by adopting functional programming techniques. This edition is particularly suitable for Java developers at all levels seeking to stay updated with modern Java features and best practices. | ||
| 650 | 0 | _aComputer programming. | |
| 650 | 0 | _aJava (Computer program language) | |
| 650 | 0 |
_aApplication software _xDevelopment. |
|
| 942 |
_2lcc _cBK _hQA76.73.J38 _kQA _mSUB _n0 |
||
| 999 |
_c2821 _d2821 |
||