A Java geek
  • Me
  • Books
  • Speaking
  • Mentions
  • Focus
  • Newsletters

readable code

A collection of 1 posts
Even more readable code without if-else
Development

Even more readable code without if-else

A couple of years ago, I wrote a post focused on how to avoid sequences of if-else statements. In that post, I demo several alternatives: the usage of proper OOP designmapswhen there’s no return, switch statements in a case. Recently, I stumbled upon a slightly more complex use-case. This post describes it, and details what additional options are available in Kotlin.

Dec 15, 2019
A Java geek © 2008-2026
v. e82558be87bbdee404465e77f01c154e8bc74b93/14297485482
Latest Posts