News for hackers. Stuff that matters.
Re:How not to write shitty code: Intentional Conditions by m463 on Monday April 20, 2020 @12:57AM (#22921226)
I like perl when writing complicated conditions like this because of if and unless.

You can not only do stuff like:

  if(condition) {...}
but also:

  unless (<condition>) {...}
you can also do stuff like:

  do_something if <condition>;
  do_something unless <condition>;
in other languages, you have to say "if not <condition>" which adds not clarity.

There are no comments on this comment yet.