Codete Workshop #3 Refactoring into Chain of Responsibility

location icon
Codete Na Zjeździe 11, Kraków
calendar icon
Od 23 sty 18:00 do 23 sty 20:30

Codete Workshop #3 - Refactoring into Chain of Responsibility

Join Codete x Włodek Krakowski WORKSHOP: Refactoring into Chain of Responsibility

date: 23 January, 2020

time: 18:00 - 20:00 

Technical Abstract:

Poker Hands are put into sequential order and the player who holds the highest one wins. Let's make fun of it then and perform some refactorings of code that identifies what poker figure given player holds. We will transform a set of nested if-else statements into a nice chain of responsibility classes (Straight Flush, Four of a Kind, Full House,...). This way the chain of classes put into sequential order will figure out the score given player holds. All I can promise during this refactoring workshop is definitely no bluffing - just pure focus on code transformations. BTW: Did you know that real poker players are bluffing very rarely…?

Theoretical Abstract

During the talk the attendees experience the concept of Refactoring Pyramid practically together with SOLID rules being applied and explained. This workshop was conducted in Barcelona at JBCNConf 2019 recently. It was rated as the second workshop (grade 4.8) out of all 10 workshops that took place at JBCNConf 2019.


We will use Java 1.8 and IntelliJ IDE tool during the workshop. You do not need IntelliJ 's license as the Community Edition is enough but mandatory. Become acquainted with poker rules if you haven't played it so far, because business perspective and understanding existing code is the initial step for any refactoring. Here are the sources for the attendees to install in order to perform the live-refactoring by following the trainer.

Expected outcome

The goal of the talk is to practice refactoring techniques and experience increasing code quality and readability.


The workshop lasts about 2 hours to 2 hours and 15 minutes.

IT Trainer:  Włodzimierz Krakowski

Registration is free.

Dołącz do wydarzenia

Dołącz do wydarzenia
  Rodzaj Dostępne do Liczba
  Codete Workshop #3 {krk}
już niedostępne -