Anyone have a good trick to remember the standard ternary syntax?
Specifically whether the \'?\' or \':\' comes first. I have consistently gotten this backwards over
If you're unit tests still pass when you get it wrong, then either it doesn't matter or your tests aren't covering enough of the paths through the code. If there's too long a gap between typing it and getting a pass/fail from the tests, that's another issue. Very few little syntax nits matter in the presence of good, fast tests.