Buy Functional Design by Robert C. Martin - Bookswagon
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer science > Systems analysis and design > Functional Design: Principles, Patterns, and Practices(Robert C. Martin Series)
Functional Design: Principles, Patterns, and Practices(Robert C. Martin Series)

Functional Design: Principles, Patterns, and Practices(Robert C. Martin Series)


     0     
5
4
3
2
1



Available


X
About the Book

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.

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.



Table of Contents:

Foreword xiii
Preface xv
Acknowledgments xxi
About the Author xxiii

Part I: Functional Basics 1

Chapter 1: Immutability 3
What Is Functional Programming? 4
The Problem with Assignment 7
So Why Is It Called Functional? 10
No Change of State? 12
Immutability 15

Chapter 2: Persistent Data 17
On Cheating 19
Making Copies 20
Structural Sharing 23

Chapter 3: Recursion and Iteration 27
Iteration 28
Recursion 32

Chapter 4: Laziness 37
Lazy Accumulation 40
OK, but Why? 41
Coda 42

Chapter 5: Statefulness 43
When We MUST Mutate 47
Software Transactional Memory (STM) 48
Life Is Hard, Software Is Harder 51

Part II: Comparative Analysis 53

Chapter 6: Prime Factors 55
Java Version 56
Clojure Version 60
Conclusion 63

Chapter 7: Bowling Game 65
Java Version 66
Clojure Version 71
Conclusion 75

Chapter 8: Gossiping Bus Drivers 77
Java Solution 78
Clojure 88
Conclusion 93

Chapter 9: Object-Oriented Programming 95
Functional Payroll 98
Namespaces and Source Files 107
Conclusion 108

Chapter 10: Types 109

Part III: Functional Design 115

Chapter 11: Data Flow 117

Chapter 12: SOLID 125
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: Tests 183
But What about the REPL? 184
What about Mocks? 184
Property-Based Testing 186
A Diagnostic Technique 190
Functional 197

Chapter 14: GUI 199
Turtle-Graphics in Quil 200

Chapter 15: Concurrency 215
Conclusion 225

Part V: Design Patterns 227

Chapter 16: Design Patterns Review 229
Patterns in Functional Programming 233
Abstract Server 233
Adapter 236
Command 242
Composite 249
Decorator 260
Visitor 264
Abstract Factory 274
Conclusion 281
Postscript: OO Poison? 282

Part VI: Case Study 285

Chapter 17: Wa-Tor 287
Scratch That Itch 309
Showers Solve Problems 312
It's Time to Wildly Reproduce 322
What about the Sharks? 324
Conclusion 335

Afterword 337

Index 341



About the Author :

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. 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.


Best Sellers


Product Details
  • ISBN-13: 9780138176396
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Height: 20 mm
  • No of Pages: 384
  • Series Title: Robert C. Martin Series
  • Sub Title: Principles, Patterns, and Practices
  • Width: 228 mm
  • ISBN-10: 0138176396
  • Publisher Date: 11 Oct 2023
  • Binding: Paperback
  • Language: English
  • Returnable: Y
  • Spine Width: 176 mm
  • Weight: 708 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Functional Design: Principles, Patterns, and Practices(Robert C. Martin Series)
Pearson Education (US) -
Functional Design: Principles, Patterns, and Practices(Robert C. Martin Series)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Functional Design: Principles, Patterns, and Practices(Robert C. Martin Series)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!