• 0 Posts
  • 131 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle



  • true, and i can’t think of a legitimate case where it would have tripped me up. but if someone, a novice perhaps, wrote

    def some_func(foo, bar=[1, 2, 3]):
        bar.reverse()  # for whatever reason
        print(bar)
    
    some_func('hello')    # output [3,2,1]
    some_func('hello')    # output [1,2,3] 
    

    i think they would be within their rights to be surprised that calling this function twice has different results. that’s what i was surprised by; it feels like bar would be re initialised each time with a scope of the function but apparenty not
















  • Maybe, but remember generative AI isn’t any kind of deductive or methodical reasoning. It’s literally “mash up the publicly available info and give a crowd sourced version of what to add next”. This works for art because this kind of random harmony appeals to us asthetically and art is an area where people seek fewer constraints. But when you’re engineering it’s the opposite. Maybe it’s useful to get engineers out of a rut and imagine new possibilities. But that’s it. Generative AI has no idea if what’s it’s smushed together is garbage or randomly insightful.