Let's refactor (FP style)

Theatrical players refactoring Kata in a Functional Programming style

Start by establishing our plan

We can use the mikado method to do so.

Here is mine :

We will use vavr to refactor this code in java.

1) Extract the amount calculation

2) Build a statement

3) Run the pipeline

4) Putting whole together

Our code is now ready to be extended with the new HTLM printer.

Last updated

Was this helpful?