Skip to content

John's Blog

  • Home
  • About
  • Photos
  • Contact

Tag Archives: yoda

Wrong is Yoda

Like any profession, programming is full of things you should do, and things you shouldn’t. Some of these are passed-down experiences, and some are momentary fashions. One of the former is that you should write a conditional using Yoda notation. That is, instead of writing: if ( x == 1 ) You should write: ifContinue reading “Wrong is Yoda”

Posted byJohnNovember 14, 2020November 14, 2020Posted inBeepTags:yodaLeave a comment on Wrong is Yoda

Search

Enter your email address to follow this blog and receive notifications of new posts by email.

  • Twitter
  • Github
John's Blog, Blog at WordPress.com.