How to "clean code" too many if else if else if – softwareengineering.stackexchange.com

I'm trying to follow Uncle Bob's clean code suggestions and specifically to keep methods short. I find myself unable to shorten this logic though: if (checkCondition()) {addAlert(1);} else if (...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "How to "clean code" too many if else if else if – softwareengineering.stackexchange.com"