madeindjs

joined 2 years ago
[–] madeindjs@programming.dev 1 points 1 year ago

For example, all of the list abstractions (map, filter, reduce, etc.) will copy the array to a new list every time you chain them.

This methods were added to generator recently. So you can avoid copying the array in memory.

All this is also without even getting started on the million JS frameworks and libraries which make it really easy to have vendor lock-in and version lock-in at the same time

In my opinion, it's also what make JS good. There a package for almost everything.

[–] madeindjs@programming.dev 1 points 1 year ago (1 children)

The link is dead.

[–] madeindjs@programming.dev 1 points 1 year ago

You can get pretty far using a bit of JS and Tamper Monkey . You can even search in existing user scripts if someone already did it.

[–] madeindjs@programming.dev 2 points 1 year ago

I just discovered from So You Think You Know Git - FOSDEM 2024 that you can use Git to generate columns:

seq 1 24 | git column --mode=column --padding=5

Will render:

1      3      5      7      9      11     13     15     17     19     21     23
2      4      6      8      10     12     14     16     18     20     22     24

It can be useful to list files / permissions in a directory in multiples columns

ls -lah | git column --mode=column --padding=5

(Ok, it's useless)

[–] madeindjs@programming.dev 1 points 1 year ago

I installed it on a cheap VPS a few years ago, and it just works. I never had to do any maintenance. I love it

[–] madeindjs@programming.dev 2 points 2 years ago

It works on my machine ™

view more: ‹ prev next ›