Conversation:
Notices
-
Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca (bobjonkmanformer)'s status on Wednesday, 02-Nov-2016 22:11:59 EDT Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca !TIL "Yoda Conditionals": if (5 == x) then... Because it's like saying "if blue is the sky" or "if tall is the man" https://blog.codinghorror.com/new-programming-jargon/ - Joshua Judson Rosen likes this.
- Joshua Judson Rosen repeated this.
-
Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca (bobjonkmanformer)'s status on Wednesday, 02-Nov-2016 22:15:09 EDT Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca And !TIL that Yoda Conditionals are actually a pretty good idea: If you accidentally mistype 'if (5 = y)' then the compiler barfs instead of getting the unwanted side-effect of adding 5 to y with 'if (y = 5)' https://discourse.codinghorror.com/t/new-programming-jargon/41/5 -
Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca (bobjonkmanformer)'s status on Wednesday, 02-Nov-2016 22:16:50 EDT Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca ...and !TIL to proofread messages before posting ("the unwanted side-effect of *assigning* 5 to y") -
lnxw48 (Linux Walt) (lnxw48)'s status on Wednesday, 02-Nov-2016 22:28:04 EDT lnxw48 (Linux Walt) I came across this (without the catchy name) in a !cplusplus course I took in the late #1990s. As I drifted first toward the sysadmin side, then toward user support, I forgot both. -
Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca (bobjonkmanformer)'s status on Thursday, 03-Nov-2016 00:00:45 EDT Former Bob Jonkman -- Please use the new server at https://gs.jonkman.ca Interesting. My progression was from programming, to user support, to !sysadmin, and (hopefully more) teaching. -
Joshua Judson Rosen (rozzin)'s status on Monday, 07-Nov-2016 02:56:36 EST Joshua Judson Rosen The biggest problem with yoda typocheck isn't the syntax, it's the shaky foundation: if you want your LHS to be const, you're better off just casting your LHS to const.