Reading about a bug is one thing. Here you get the broken code, the failing tests and the angry ticket, and you find it yourself.
๐งช Debugging labs
Each lab is a small Maven project that runs on your machine with Java 21: download it, run mvn test, and fix the code until the tests pass. Hints come one at a time, and the root cause waits until you ask.
- ๐The flash sale sold 112 units of an item with 100 in stockThe shop keeps its stock count on a whiteboard. During the sale, shoppers read the count, decided there was enough, and wrote down a smaller number. More games were sold than the shop had. Find out why and fix it.Java 21JUnit 5
- ๐The open orders report got slowThe waiter brings the list of open tables in one trip, then walks back to the kitchen for every table's guest card and dishes. The more tables are open, the slower the room gets. Make it one trip.Java 21Hibernate 6H2JUnit 5
- ๐ณBilling charged some customers twiceThe billing reader works through the shared notebook of orders. Some customers were charged twice, and after a restart one order was never charged at all. Find out why and fix it.Java 21Kafka clientJUnit 5