Functional Design
Principles, Patterns, and Practices
von Robert Martin und Robert C. Martin
Aus der Reihe Robert C. Martin
- Einband
- Kartoniert
- Sprache
- Englisch
- Erschienen
- September 2023
- Verlag
- Pearson
Buchbeschreibung
A Practical Guide to Better, Cleaner Code with Functional Programming In Functional Design, renowned software engineer Robert C. Martin ("Uncle Bob") explains how and why to use functional programming to build better systems for real customers. Martin compares conventional object-oriented coding structures in Java to those enabled by functional languages, identifies the best roles for each, and shows how to build better systems by judiciously using them in context.
Ganze Beschreibung lesenWeniger anzeigen
Martin's approach is pragmatic, minimizing theory in favor of "in the-trenches" problem-solving. Through accessible examples, working developers will discover how the easy-to-learn, semantically rich Clojure language can help them improve code cleanliness, design, discipline, and outcomes.
Martin examines well-known SOLID principles and Gang of Four Design Patterns from a functional perspective, revealing why patterns remain extremely valuable to functional programmers, and how to use them to achieve superior results. - Understand functional basics: immutability, persistent data, recursion, iteration, laziness, and statefulness - Contrast functional and object approaches through expertly crafted case studies - Explore functional design techniques for data flow - Use classic SOLID principles to write better Clojure code - Master pragmatic approaches to functional testing, GUIs, and concurrency - Make the most of design patterns in functional environments - Walk through building an enterprise-class Clojure application "Functional Design exudes 'classic-on-arrival'. Bob pulls back the curtain to reveal how functional programming elements make software design simple yet pragmatic. He does so without alienating experienced object-oriented programmers coming from languages like C#, C++, or Java."
--Janet A. Carr, Independent Clojure Consultant Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
Inhaltsverzeichnis
- Foreword xiii
- Preface xv
- Acknowledgments xxi
- About the Author xxiii Part I: Functional Basics 1 Chapter 1: Immutability3
- What Is Functional Programming?4
- The Problem with Assignment7
- So Why Is It Called Functional?10
- No Change of State?12
Ganzes Inhaltsverzeichnis anzeigen (62 Einträge)Weniger anzeigen
- Immutability 15 Chapter 2: Persistent Data17
- On Cheating19
- Making Copies20
- Structural Sharing 23 Chapter 3: Recursion and Iteration27
- Iteration28
- Recursion 32 Chapter 4: Laziness37
- Lazy Accumulation40
- OK, but Why?41
- Coda 42 Chapter 5: Statefulness43
- When We MUST Mutate47
- Software Transactional Memory (STM)48
- Life Is Hard, Software Is Harder 51 Part II: Comparative Analysis 53 Chapter 6: Prime Factors55
- Java Version56
- Clojure Version60
- Conclusion 63 Chapter 7: Bowling Game65
- Java Version66
- Clojure Version71
- Conclusion 75 Chapter 8: Gossiping Bus Drivers77
- Java Solution78
- Clojure88
- Conclusion 93 Chapter 9: Object-Oriented Programming95
- Functional Payroll98
- Namespaces and Source Files107
- Conclusion108
- Chapter 10: Types 109 Part III: Functional Design115
- Chapter 11: Data Flow117
- Chapter 12: SOLID125
- The Single Responsibility Principle (SRP)126
- The Open-Closed Principle (OCP)131
- The Liskov Substitution Principle (LSP)138
- The Interface Segregation Principle (ISP)147
- The Dependency Inversion Principle (DIP) 152 Part IV: Functional Pragmatics 181 Chapter 13: Tests183
- But What about the REPL?184
- What about Mocks?184
- Property-Based Testing186
- A Diagnostic Technique190
- Functional 197 Chapter 14: GUI199
- Turtle-Graphics in Quil 200 Chapter 15: Concurrency215
- Conclusion 225 Part V: Design Patterns 227 Chapter 16: Design Patterns Review229
- Patterns in Functional Programming233
- Abstract Server233
- Adapter236
- Command242
- Composite249
- Decorator260
- Visitor264
- Abstract Factory274
- Conclusion281
- Postscript: OO Poison? 282 Part VI: Case Study 285 Chapter 17: Wa-Tor287
- Scratch That Itch309
- Showers Solve Problems312
- It's Time to Wildly Reproduce322
- What about the Sharks?324
- Conclusion 335 Afterword 337 Index341
Details
- Erscheinungstermin
- September 2023
- Kategorie
- Fremdsprachige Bücher
- Einband
- Kartoniert
- Sprache
- Englisch
- Verlag
- Pearson
- Reihe
- Robert C. Martin
- Format
- 23,5 × 17,8 cm
- Dicke
- 2,1 cm
- Gewicht
- 667 g
- EAN / ISBN-13
- 9780138176396
Autorenporträt
Robert C. Martin ("Uncle Bob") wrote his first line of code at the age of 12 in 1964 and has been employed as a programmer since 1970.
Mehr über die Autorin oder den AutorWeniger anzeigen
He is cofounder of cleancoders.com, offering online video training for software developers, and is founder of Uncle Bob Consulting LLC, offering software consulting, training, and skill development services to major corporations worldwide. He served as the Master Craftsman at 8th Light, Inc., a Chicago-based software consulting firm. Mr. Martin has published dozens of articles in various trade journals, authored many books, and is a regular speaker at international conferences and trade shows.
Versand und Rückgabe
Standardversand: 1 bis 3 Werktage, 3,99 €, kostenlos ab 35 €
Versandbeginn: in der Regel am selben oder am nächsten Werktag
Liefergebiet: Deutschland
Rücksendung: 14 Tage Widerrufsrecht. Bei einem Widerruf tragen Sie die Kosten der Rücksendung. Bei einer Falschlieferung oder einem Fehler von uns erstatten wir Ihnen das Rückporto. Den Widerruf erklären Sie über den Knopf „Vertrag widerrufen“ im Fuß der Seite.
Hersteller und ProduktsicherheitPearson Benelux B.V. (Zweigniederlassung Deutschland)
St.-Martin-Straße 82
81541 München
Deutschland
salesde@pearson.com
Mehr von Robert Martin
Clean Coder, The: A Code of Conduct for Professional Programmers
Robert Martin
Kartoniert, Englisch
41,49 €
Agile Software Development, Principles, Patterns, and Practices
Robert Martin
Kartoniert, Englisch, 2 Ausgaben
ab 96,99 €
Ähnliche Titel
Code: The Hidden Language of Computer Hardware and Software
Charles Petzold
Kartoniert, Englisch
31,99 €
Bewertungen
Zu diesem Titel gibt es noch keine Bewertung. Bewerten kann, wer ihn bei uns gekauft hat.









