4 ms·
Yoda Conditions
- superjan 4y agoif (42 = myNumber) { /* ... */ } // A syntax error this is and compile it will not
- jayknight 4y agoAt least it's a compile time error and not a run time exception, because there is no try{}.
- forgotmypw17 4y agoI use this sometimes in my JavaScript to avoid > characters, which trip up Mosaic, which considers > to be the end of HTML comments.
- sam_goody 4y agoThere is a fantastic list of similar jargon: https://blog.codinghorror.com/new-programming-jargon/ https://blog.codinghorror.com/new-programming-jargon/ At work, we reference these all the time, especially the Ninja comments and the Heisenbugs.