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

365
[-] sus@programming.dev 9 points 2 days ago

I think the problems there are exacerbated a lot by over-eager type coercion and other crappy design decisions inherited from almost 30 years ago

[-] sus@programming.dev 1 points 4 days ago

if you can't connect to a vpn using only open source software, that's a crappy vpn

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

importantly it's (hopefully) an ISP that operates from a less copyright-happy country and isn't tied down to tons of expensive infrastructure and long-term contracts

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

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

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

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

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

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

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

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

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

sus

joined 1 year ago