Teaching with the Book

Java by Comparison was born in the classroom. Today, universities, companies, and study groups use it to teach clean Java code.

How to Teach with Java by Comparison

  • Grade with code reviews. Point students to the matching item instead of writing the same explanation again. Each item shows the problem and the solution side by side, so students understand why.
  • Accompany any programming course. Once students know basic Java syntax, the book fits basically any course with programming tasks. A FizzBuzz exercise is a good readiness check.
  • Run the kata. The Java by Comparison kata is a two-hour exercise for pairs, with code, tests, and a checklist on GitHub.
  • Play Comparison Jeopardy. In the game, students find the name of a comparison, which trains their naming skills.
  • Start with the free material. The preface and three items are free samples, and all 70 comparisons are listed online.

The concept behind it is described in our research and in the story of the book.

Universities

  • University of Bamberg logo

    University of Bamberg, Germany

    Advanced Java Programming (3rd semester)

    Where it all started. Student teams solve four group assignments per semester and get detailed written code reviews that point to the items of the book.

    Paper: Code Process Metrics (ISEE 2019) · Research

  • University of Bamberg logo

    University of Bamberg, Germany

    Introduction to Parallel and Distributed Programming (5th semester)

    Concurrency on the JVM with the same feedback concept: group assignments, graded by code reviews that refer students to the book's comparisons.

    Paper: Code Process Metrics (ISEE 2019)

  • Munich University of Applied Sciences (Hochschule München), Germany

    Softwareentwicklung I (required, 1st semester, Computer Science B.Sc.)

    The official module description lists Java by Comparison as literature, next to Java ist auch eine Insel and Das Java-Praktikum.

    Module description (archived)

  • Munich University of Applied Sciences (Hochschule München), Germany

    Software development lectures by Prof. Dr. Ullrich Hafner

    The coding style that students follow in his lectures, enforced with static analysis in a template project, names Java by Comparison as one of the books it is based on.

    Coding style on GitHub

  • Vrije Universiteit Amsterdam logo

    Vrije Universiteit Amsterdam, Netherlands

    XB_40007 Software Design

    The book is on the course reading list.

    Reading list

  • Stockholm University logo

    Stockholm University, Sweden

    IB133N Programmering 1 · IB444C Introduktion till testning av IT-system · IBP01N Data- och systemvetenskap I

    The Stockholm campus bookshop lists Java by Comparison as course literature for three courses at the Department of Computer and Systems Sciences.

    Campus bookshop

  • OTH Regensburg, Germany

    Guest lecture, May 23, 2022

    Simon Harrer and Linus Dietz told the story of the book and played Comparison Jeopardy with students.

    Slides (PDF)

Coding Dojos, Workshops, and Study Groups

  • BMW Group, München

    Coding dojo, March 25, 2019

    The first run of the Java by Comparison kata: 19 participants in pairs, 120 minutes, 39 of the 70 comparisons used.

    Slides (PDF) · Kata results

  • HUK-COBURG logo

    HUK-COBURG

    Full-day workshop, October 21, 2024

    A full-day workshop in Coburg: the story of the book, Comparison Jeopardy, the kata, and applying the comparisons to the team's own code.

    Slides (PDF) · Kata

  • JavaLand logo

    JavaLand 2023, Brühl

    Two-hour workshop, March 20, 2023

    The kata as a conference workshop with Sebastian Rose and Falk Sippach.

    Event page · Slides (PDF)

  • Study groups in Korea

    Reading groups for the Korean edition 자바 코딩의 기술

    Developers read the Korean translation together, chapter by chapter, and publish their notes, for example Javawesome (2021) and star-books-study (2023–2024).

    Javawesome · star-books-study

Do You Teach with Java by Comparison?

We would love to hear about your course, workshop, or study group, and to list it here. Tell us about it. We also run the kata or a talk at your university or company.