22
412
sus

@programming.dev

sus 94 points 2 years ago

I managed to recreate almost the same screenshot in 5kb (and with much less compression artifacts!)

before adding the text and circles it was only 1.6kb

it's a case where jpeg compression ironically results in the picture getting 60x larger and more blurry because everyone recompresses the images and jpeg is designed for large photos and not pixel art

path: 0 7670711 7671073 7672566 7675122, hotness: undefined, score: 94, children: 6
sus 87 points a year ago

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;
}
path: 0 18252122, hotness: undefined, score: 87, children: 9
sus 83 points 2 years ago

is-number is a one-line function. (though it's debatable if a function that complex should be compressed to one line)

You may have heard of a similar if more extreme "microdependency" called is-even. When you use an NPM package, you also need all the dependencies of that package, and the dependencies of those dependencies recursively. Each package has some overhead, eventually leading to this moment in time.

path: 0 11494703 11494914, hotness: undefined, score: 83, children: 1
sus 82 points 2 years ago

I tried to edit the 'highlights' into a single image, the top is the description of the PR, the middle is a comment replying to another comment

https://github.com/...

path: 0 11494702 11494771, hotness: undefined, score: 82, children: 1
sus 77 points 2 years ago

this is already a classic

path: 0 12470909, hotness: undefined, score: 77, children: 6
sus 73 points a year ago

funny how well this fits for both meanings

path: 0 17922398 17923286, hotness: undefined, score: 73, children: 0
sus 62 points 2 years ago

but sometimes "πŸ‘πŸ½".reverse() == "πŸ½πŸ‘"

path: 0 12022571, hotness: undefined, score: 62, children: 0
sus 61 points 2 years ago

It's "real" in that the police shared the picture: https://x.com/NYPDnews/status/1864706407985221974

though the clothing seems different from an earlier picture, especially with this one having big front pockets in the jacket. so there's claims that it is not the same suspect.

path: 0 13816899 13817246, hotness: undefined, score: 61, children: 3
sus 53 points 2 years ago

I'm pretty sure that "motorcycle airbag vest" is not considered a standard piece of safety equipment by law

path: 0 6797155 6798336, hotness: undefined, score: 53, children: 4
sus 53 points a year ago

$1 for tapping the pipe, $100 for knowing where to tap

path: 0 14704729 14705088, hotness: undefined, score: 53, children: 1
sus 50 points 9 months ago path: 0 19317750 19318160 19318712, hotness: undefined, score: 50, children: 0
sus 50 points a year ago

Spotify also originally got all its music by pirating it. But later it started printing money for record labels (while fucking over musicians) so all was forgiven.

path: 0 14982917 14984557 14988101, hotness: undefined, score: 50, children: 3
sus 49 points 2 years ago

To save even more data, replace every symbol with A. Then just store the amount of As.

path: 0 6897935, hotness: undefined, score: 49, children: 3
sus 44 points a year ago path: 0 16009834 16013567, hotness: undefined, score: 44, children: 3
sus 44 points a year ago

it's funny how you can tell at a glance exactly what model generated this image, just based off the background color

path: 0 16447855, hotness: undefined, score: 44, children: 9
sus 43 points 2 years ago

their given reasons are "to keep backups" and "academic and clinical research with de-identified datasets"

they seem to actually do a fairly good job with anonymizing the research datasets, unlike most "anonymized research data", though for the raw data stored on their servers, they do not seem to use encryption properly and their security model is "the cloud hoster wouldn't spy on the data right?" (hint: their data is stored on american servers, so the american authorities can just subpoena Amazon Web Services directly, bypassing all their "privacy guarantees". (the replacement for the EU-US Privacy Shield seems to be on very uncertain legal grounds, and that was before the election))

path: 0 13403023 13406303, hotness: undefined, score: 43, children: 3
sus 40 points 2 years ago

bonus points if you're using a statically typed language but the library uses extensive metaprogramming seemingly for the sole purpose of hiding what types you actually need

path: 0 12411406, hotness: undefined, score: 40, children: 0
sus 40 points 2 years ago

driver is john cena, who has the catchphrase "you can't see me"

path: 0 7124174 7124375, hotness: undefined, score: 40, children: 9
sus 39 points 2 years ago

Rules of thumb can be very useful for a relatively inexperienced programmer, and once you understand why they exist you can choose to ignore them when they would get in the way. Clean Code is totally unhinged though

path: 0 11681648 11682170, hotness: undefined, score: 39, children: 1
sus 38 points 3 years ago

I would guess that, after working on perfecting a song for weeks or months, it feels very weird to completely change it in 2 minutes by applying 2-3 transforms/filters and releasing that as a separate version

path: 0 5950651 5951522, hotness: undefined, score: 38, children: 2

thanks for using Leebra!

go to feed...