More Information
  • 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

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.

  • 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
Page Count 56
Course Length 1 hour 40 minutes
ISBN 9781838982362
Date Of Publication 15 Nov 2019


Paul Stadig

Paul Stadig has been using Clojure since 2008. He took a job writing Clojure full time in 2010. Since then, he has worked at two other companies writing Clojure code full time, and still does! He worked on large, distributed, cloud-based applications that ran Clojure services on hundreds of Amazon Web Services instances, processing jobs from RabbitMQ. He worked on Clojure services that served front-page ad carousels to 1,000,000 visitors per day. He worked on distributed Clojure systems that process graph algorithms across billions of observations about network activity. He has been an administrator for Clojure’s Jira ticketing system and the Clojure developer Google Group. He is actively involved in Clojure user groups and has created and contributed to many Clojure open-source projects. He has spoken at Clojure conferences and is a technical reviewer on several Clojure books. Paul lives in central Virginia in the foothills of the Blue Ridge Mountains with his wife and four children.