sus

joined 2 years ago
[–] sus@programming.dev 6 points 4 months ago

We're going to have nuclear fusion before we have asteroid mining. And I'm not saying that fusion is anywhere close.

[–] sus@programming.dev 8 points 4 months ago (1 children)

wrestle a gorilla and win, obviously

[–] sus@programming.dev 0 points 5 months ago* (last edited 5 months ago) (1 children)

Volksverthetzung is about specific protected classes, which don't include non-religious ideologies (and l'm not sure if "not american" is a specific enough identity either)

[–] sus@programming.dev 10 points 5 months ago (1 children)

That is what went over the line for you? what?

[–] sus@programming.dev 4 points 5 months ago* (last edited 5 months ago)

buffer overflows are critical for memory safety since they can cause silent data corruption (bad) and remote code execution (very bad). Compared to those a "clean" unhandled runtime error is far preferable in most cases.

[–] sus@programming.dev 9 points 5 months ago (1 children)

We can avoid expensive branches (gasp) by using some bitwise arithmetic to achieve the so-called "absolute value", an advanced hacker technique I learnt at Blizzard. Also unlike c, c# is not enlightened enough to understand that my code is perfect so it complains about "not all code paths returning a value".

private bool IsEven(int number)
{
    number *= 1 - 2*(int)(((uint)number & 2147483648) >> 31);
    if (number > 1) return IsEven(number - 2);
    if (number == 0) return true;
    if (number == 1) return false;
    throw new Exception();
}
[–] sus@programming.dev 88 points 5 months ago* (last edited 5 months ago) (9 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 5 months ago* (last edited 5 months 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 23 points 5 months ago (2 children)

Boybortion, now recognized by Wiktionary the free dictionary

[–] sus@programming.dev 2 points 6 months ago* (last edited 6 months 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 73 points 6 months ago

funny how well this fits for both meanings

[–] sus@programming.dev 36 points 6 months ago* (last edited 6 months 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

view more: ‹ prev next ›