• I really like short-circuit logic! 😀

  • Yep. But if you’re using juniors on the project, they may react unexpectedly to the sight of this code.

  • It depends. If they have basic boolean algebra knowledge, they might not be confused by that code. But then again, some of them have problems, as you mentioned in one of your previous posts, with the ++/– operators. >:)

  • Dude, I’ve seen so called “seniors programmers” having these kind of flaws…

  • Yeap, but it relies on the same thing…

  • There are some guys using some other trick, which may be useful sometimes. Personally, I’ve never used it.

Advertisment ad adsense adlogger