"AI is so complex even the developers dont understand it" "looks inside" "if-statement and for-loops" cat stares down at the camera
you are viewing a single comment's thread
view the rest of the comments
[–] 13 points 12 hours ago (1 child)

Oh, just wait till you hit that sweet sweet python "Everything can have an else block"

if some_shit:
    try: 
        for stuff in thing:
             if stuff is bad:
                  raise ShitHitTheFanError
             # Massive block comment
             do = the_thing()
             if do is good:
                  break
        else:
            do = the_other_thing()
            if not a_thing:
                help_me() # May raise NoHelpFoundError
    except ShitHitTheFanError:
         my_life = recover()
         if my_life is bad:
             for fuck in my_life:
                  try:
                      fix(fuck)
                  except NoHelpFoundError:
                      break
             else:
                  fuck_this_shit()
    else:
         wat_is_going_on()
else:
    theres_another_one("?")
  • source
  • parent
  • hideshow 1 child comment