A Tale of Two Katas
Learn a modern Java Collections Library with more features and less waste.
Have you tried a Code Kata?
It really is the best way to learn a new framework or library. We have two katas for Eclipse Collections hosted on GitHub. They are free hands-on training for what I would describe is the most feature rich and memory friendly Java Collections framework available today.
What is a Code Kata?
From the website.
A kata is an exercise in martial arts. A code kata is an exercise in programming which helps hone your skills through practice and repetition. The Eclipse Collections Kata is a fun way to help you learn idiomatic Eclipse Collections usage. This particular kata is set up as a series of unit tests which fail. Your task is to make them pass, using Eclipse Collections.
We learn best by doing. Try one of the Eclipse Collections Code Katas and learn an amazing framework at your own pace in your IDE with hands-on coding exercises.
The Company Kata
The Company Kata was the first kata developed for Eclipse Collections. It has been used to teach thousands of developers how to use Eclipse Collections over the past ten years. It is a comprehensive set of exercises in the form of unit tests, built around a domain model focused on simple concepts like Company, Supplier, Customer, Order and LineItem.
The Pet Kata
The Pet Kata was developed three or four years ago in order to create a TL;DR kata for developers who didn’t want to spend eight hours in a class learning the Company Kata or three to four hours completing it on their own. The domain of the Pet Kata is simpler. There are classes for Person, Pet and PetType. A Person can have many Pets and a Pet has one Pet Type.
- Clone the repo here— https://github.com/eclipse/eclipse-collections-kata
- Import the pom.xml file located in the root as a Maven Project in your favorite IDE
- Pick one of the Kata folders (company-kata or pet-kata) and go to the tests directory
- Start with Exercise 1
- Run the unit tests — They should fail!
- Get the tests to pass one by one
- When you complete the last exercise— Congratulations!
- Repeat as desired or complete the other kata to learn more iteration patterns and hone your skills using Eclipse Collections
- Star the repo if you enjoyed the kata
- Introduction to Eclipse Collections (Baeldung Article)
- The Java Evolution of Eclipse Collections (InfoQ Article)
- The Eclipse Collections Reference Guide
- The API Design of Eclipse Collections — (markdown format)
- Conference Talks and Meetups
- Eclipse Collections Website — (available in English, Chinese, Japanese, Russian, Brazilian Portuguese, French and German)