prog: (khan)
[personal profile] prog
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

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

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

Date: 2007-06-04 06:39 pm (UTC)
From: [identity profile] lediva.livejournal.com
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..."

August 2022

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28 293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 14th, 2025 06:38 pm
Powered by Dreamwidth Studios