Clojure Polymorphism: Leverage Clojure's Polymorphic Tools to Develop Your Applications

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Learn when and how to use Clojure's polymorphic features to develop efficient multithreaded applicationsKey Features* Get to grips with the different polymorphic tools that Clojure offers* Develop a taste for good Clojure designs through various engaging examples* Study various design principles and learn ways to use them in your applicationsBook DescriptionClojure is a modern, dynamic language that you can use to develop robust, multithreaded programs. Clojure Polymorphism is a comprehensive guide that shows you how to use Clojure's features to your advantage.The book begins by describing examples that show how to define and implement abstractions with plain functions and multimethods. Then you'll analyze these examples and separate the good and bad aspects of their design principles. You'll also learn how to perform data transformation abstraction with a plain function and discover how to write new cross-platform predicates while keeping the core of your abstraction free from reader conditionals. The later chapters explain the considerations to keep in mind when implementing Clojure protocols on the Java Virtual Machine (JVM).By the end of this book, you'll know how to use the various polymorphic tools of Clojure to your advantage while designing your applications.What you will learn* Explore how polymorphism is implemented in Clojure* Discover what design principles to use when creating and implementing abstractions* Explore different ways to implement protocols in Clojure* Implement various design principles while working with the JVM* Write and compare plain functions and multimethods for transforming data * Analyze functions and abstractions for their performance and flexibility* Learn about common "gotchas" to avoid errors when writing codeWho this book is forClojure Polymorphism is useful for all programmers who want to leverage Clojure's polymorphic tools to build efficient applications. To get the most out of this book, you must be a moderately proficient Clojure programmer.

Author(s): Paul Stadig
Publisher: Packt Publishing
Year: 2019

Language: English
Pages: 56

Preface
Introduction
Chapter 1: Polymorphism
Chapter 2: Service Abstraction
Plain Functions
Plain Functions + Client Namespace
Multimethods
Protocol
Protocol + Client Namespace
Protocol + Client Namespace + Multimethod
Analysis
Code Elasticity
Separation of Concerns
Dynamism
Summary
Chapter 3: Data Transformation
Analysis
Flexibility
Performance
External Integration
Cross-Platform Compatibility
Summary
Chapter 4: Miscellaneous JVM Considerations
Performance Gotcha
Semantic Gotcha
Summary
Conclusion
Index
Blank Page