[-] sus@programming.dev 17 points 3 days ago

Trying to beat up someone holding a machete may not be the brightest idea

[-] sus@programming.dev 1 points 3 days ago* (last edited 3 days ago)

I think it's more accurate to say that power attracts corrupt people, and protects them from the consequences of their actions, allowing them to show their true colors without fear

402
idiot (programming.dev)
[-] sus@programming.dev 78 points 1 month ago

this is already a classic

[-] sus@programming.dev 42 points 1 month 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

411
[-] sus@programming.dev 65 points 2 months ago* (last edited 2 months ago)

but sometimes "๐Ÿ‘๐Ÿฝ".reverse() == "๐Ÿฝ๐Ÿ‘"

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

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

[-] sus@programming.dev 85 points 3 months ago* (last edited 3 months 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/micromatch/to-regex-range/pull/17

740
average day in NPM land (programming.dev)
709
Reality check (programming.dev)
submitted 5 months ago by sus@programming.dev to c/linuxmemes@lemmy.world
426
YoE (programming.dev)
[-] sus@programming.dev 95 points 8 months ago* (last edited 8 months 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

[-] sus@programming.dev 56 points 9 months ago

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

[-] sus@programming.dev 59 points 9 months ago* (last edited 9 months ago)

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

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

7
submitted 11 months ago by sus@programming.dev to c/videos@lemmy.world
view more: next โ€บ

sus

joined 1 year ago