April 26, 2010
My weekend project: in-n-out-bieber.com. Consider it a public service.
Important things I learned while building this: the wiki entry on age of consent is terrifyingly thorough. I suspect that page’s edit history is a law enforcement goldmine.
Also: as impressively lengthy penal codes go, nobody holds a candle to Arkansas. Here’s a Python representation of the twenty logical steps necessary to determine if you can legally fuck in the Razorback state:
if state == 'AR':
  if minor_years >= 16:
    return (True, None)
  else:
    if minor_years >= 14:
      if major_years < 18:
        return (True, None)
      else:
        return (False, time_until(minor, 16))
    elif minor_years >= 12:
      if (major - minor).days/365 < 4:
        return (True, None)
      else:
        return (False, time_until(minor, 14))
    else:
      if (major - minor).days/365 < 3:
        return (True, None)
      else:
        if (major - minor).days/365 < 4:
          return (False, time_until(minor, 12))
        else:
          return (False, time_until(minor, 16))

My weekend project: in-n-out-bieber.com. Consider it a public service.

Important things I learned while building this: the wiki entry on age of consent is terrifyingly thorough. I suspect that page’s edit history is a law enforcement goldmine.

Also: as impressively lengthy penal codes go, nobody holds a candle to Arkansas. Here’s a Python representation of the twenty logical steps necessary to determine if you can legally fuck in the Razorback state:

if state == 'AR':
  if minor_years >= 16:
    return (True, None)
  else:
    if minor_years >= 14:
      if major_years < 18:
        return (True, None)
      else:
        return (False, time_until(minor, 16))
    elif minor_years >= 12:
      if (major - minor).days/365 < 4:
        return (True, None)
      else:
        return (False, time_until(minor, 14))
    else:
      if (major - minor).days/365 < 3:
        return (True, None)
      else:
        if (major - minor).days/365 < 4:
          return (False, time_until(minor, 12))
        else:
          return (False, time_until(minor, 16))

  1. kookytsuyuki reblogged this from langer and added:
    Stupendous. Save for...ball Bieber (nor...California)…...
  2. tizia reblogged this from langer and added:
    Wow.
  3. buchino reblogged this from langer and added:
    HA!
  4. katiebakes reblogged this from langer
  5. langer posted this