Clojure Polymorphism

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

Type
ebook
Category
publication date
2019-11-15
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 code

no of pages
56
duration
112
key 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 applications
approach
Clojure Polymorphism explains concepts by picking up a theme and talking about the tools Clojure provides for exploring that theme. Engaging examples are given in each case. Problems are solved using different tools, and the solutions are analyzed by separating the good and bad design principles.
audience
Clojure 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.
meta description
Learn when and how to use Clojure's polymorphic features to develop efficient multithreaded applications
short description
Clojure Polymorphism is like a class in comparative architecture. By solving sample problems and then analyzing the solutions, you'll discover various design techniques and learn how to apply the most appropriate ones in your design.
subtitle
Leverage Clojure's polymorphic tools to develop your applications
keywords
Clojure, polymorphism,abstractions,
Product ISBN
9781838982362