Refactoring business logic with nested if/else code blocks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
src
.gitattributes
.gitignore
LICENSE
README.md
pom.xml

README.md

If-Else-Block-Refactoring

Refactoring business logic with nested if/else code blocks

This repository accompanies a series of blog posts on how to refactor business logic. It is intended as a readability aid to my blog posts about refactoring.

The first blog post covers starting with deeply nested if/else blocks and spaghetti code business logic.

The second blog post brings Java 8 functional style programming into the mix

The third blog post dives into the functional style of code, and uses a validator that takes functions to evaluate data