sus

joined 2 years ago
[–] sus@programming.dev 32 points 12 hours ago* (last edited 12 hours ago) (4 children)

After working at blizzard for 51 years, I finally found an elegant solution by using the power of recursion

private bool IsEven(int number){
  if (number > 1) return IsEven(number - 2);
  if (number == 0) return true;
  if (number == 1) return false;
}
[–] sus@programming.dev 2 points 21 hours ago* (last edited 21 hours ago)

Up and until the rule applies to so many countries that the sites just make the requirement universal, this will do nothing to stop bots as the bots will all just operate from countries that are not under age restriction laws. Even after that it's likely the bot operators will just use fake IDs and similar, as it's unlikely website operators would setup reliable verification of identity for every single country they want to serve.

[–] sus@programming.dev 21 points 1 week ago (2 children)

Boybortion, now recognized by Wiktionary the free dictionary

[–] sus@programming.dev 2 points 2 weeks ago* (last edited 2 weeks ago)

though this pic is in winter, and there could well be a bunch of trees just to the right off-camera

(also the cars and the satellite dish give away that this is what a commieblock looks 50 years after being built)

[–] sus@programming.dev 71 points 2 weeks ago

funny how well this fits for both meanings

[–] sus@programming.dev 34 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

this would actually be achieved by a team of 20 thousand oompa loompas with small shovels and 500 million tons of cocaine

[–] sus@programming.dev 15 points 3 weeks ago* (last edited 3 weeks ago)

these are probably trolls. At one point quora had a "partner program" where people would get paid to post questions, but only if the questions got enough engagement. The question generators realized that coming up with interesting questions was kind of hard, so they just started pouring out ragebait.

If it's too obvious people may realize it's a troll, so the ideal way to do it is phrase it in a vague way that leaves a lot to the imagination (here for example people can easily make the assumption that you're an idiotic and boneheaded parent)

[–] sus@programming.dev 8 points 3 weeks ago (1 children)

openAI tried to remove the mexico filter but they just can't. The AI is hopelessly addicted to that sepia tone

[–] sus@programming.dev 14 points 3 weeks ago* (last edited 3 weeks ago)

No. If that thing ever ends up running in the ocean, we will all die

[–] sus@programming.dev 3 points 3 weeks ago

Yeah, same for simcity 4

[–] sus@programming.dev 4 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

white background with black text is pretty much the default everywhere and I think always has been, so specifying those colors is redundant (and breaks night mode, though I don't think that was a thing back when it was designed)

[–] sus@programming.dev 16 points 3 weeks ago

I Can't Believe It's Not Flagged

 
38
math (programming.dev)
 
 
class Node:
    def __init__(self, edges = set()):
        self.edges = edges


def main():
    foo = Node()
    bar = Node()
    quz = Node()

    foo.edges.add(bar)
    bar.edges.add(foo)

    assert(foo is not bar) # assertion succeeds
    assert(foo is not quz) # assertion succeeds
    assert(bar is not quz) # assertion succeeds
    assert(len(quz.edges) == 0) # assertion fails??


main()

spoilerMutable default values are shared across objects. The set in this case.

 
401
idiot (programming.dev)
 
 
 
 
 
view more: next ›