Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MA
Posts
0
Comments
30
Joined
2 yr. 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.

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

     sh
        
    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

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

    (Ok, it's useless)