Hacker News new | ask | show | jobs
by lioeters 1060 days ago
One thing I have learned from reading $any_lang code written by professional teams is: use nested ternary operations where it makes sense to do so, to tersely express a series of if/else conditions that simply return a value for each condition.