prog: (khan)
prog ([personal profile] prog) wrote2007-06-04 09:37 am

Like you've.... ooo-pened uuup the doooooor

Reasons that $not_first_time is not a good variable name:
  • Not the first time for what, exactly? (This isn't helped by the fact that this programmer doesn't believe in using inline comments. Ever.)

  • It's awfully rude to use an inverse boolean like that, where it's false if the thing it tracks is true, and vice versa. not($first_time) reads much better than not($not_first_time), no?

  • I can't get that song from Foreigner out of my head now.

Bonus annoyance: I'm thinking of that one ATHF episode where Karl gets the magic Foreigner belt. Sadly, I think that's hilarious.

I am unhelpful

[identity profile] rikchik.livejournal.com 2007-06-04 01:42 pm (UTC)(link)
Like it ne-ver willl agaaaaain...
NEVER AGAIN!!!

[identity profile] tahnan.livejournal.com 2007-06-04 04:47 pm (UTC)(link)
if $cold_as_ice == True:
   $pay_the_price += 1
   del $our_love

[identity profile] lediva.livejournal.com 2007-06-04 06:39 pm (UTC)(link)
Inverse booleans are the devil.

Says someone who must use them frequently in her day job.

"...so if not_holidaycheck is red, that means it _is_ a holiday, so the action should _not_ run..."