do me a favour

Don’t ever, ever nest ternary operators. Or at least, don’t do it in code I’m likely to see. Even if you think that ternary operators are the subject of wildlife TV documentaries, just don’t nest them. Okay?

Leave a Reply

Your email address will not be published. Required fields are marked *