TL;DR: Don't use ternaries for code execution. You should read them as a math formula. Problems Difficult to read Low Reuse Low Testability Solutions Extract the method guards Refactorings https://maximilianocontieri.com/refactoring-010-extra...

Markdown supported · ⌘↵ to post
No responses yet.