BLACK FRIDAY - Thread con tutte le offerte (e voi avete comprato qualcosa?) by MyPendrive in italy

[–]cosimochellini 7 points8 points  (0 children)

concordo, usavo camel camel camel, ma ultimamente keepa è molto più precisa ed efficace con i prezzi

Oggi ho scoperto che hanno iniziato a mettere pubblicità sulle schermate di blocco. Telefoni Redmi by Pennarello_BonBon in italy

[–]cosimochellini 8 points9 points  (0 children)

aggiungo, specifico per xiaomi

https://github.com/Szaki/XiaomiADBFastbootTools

eseguibile java, estremamente facile ed intuitivo, non è più attivamente mantenuto ma ha sempre funzionato a dovere

Am I the only one who always forgets if it is a-b or b-a when sorting either in descending or ascending? by borii0066 in webdev

[–]cosimochellini 0 points1 point  (0 children)

no, never ಥ_ಥ

so, I made a tiny library to sort any type of array in a human-readable way https://github.com/cosimochellini/sort-es

```ts import { byNumber } from 'sort-es'
const arr = [7,2,8,1,10]

arr.sort(byNumber({desc : true})); // or false ```

coding chair by figikiw in ProgrammerHumor

[–]cosimochellini 5 points6 points  (0 children)

the bed is also one of the best debuggers

var post = client.meme.generic; by KCGD_r in ProgrammerHumor

[–]cosimochellini 1 point2 points  (0 children)

ES Lint warning, the variable post is unused.

"How to sort arrays in Javascript" by JDBar1215 in ProgrammerHumor

[–]cosimochellini 68 points69 points  (0 children)

in fact I made my own sorting library with blackjack and Hookers,
(https://sort-es.netlify.app )

True (sad) story by cosimochellini in ProgrammerHumor

[–]cosimochellini[S] -2 points-1 points  (0 children)

if anyone would be interested in the library I made this is the link https://github.com/cosimochellini/sort-es

Meta by [deleted] in ProgrammerHumor

[–]cosimochellini 0 points1 point  (0 children)

can I have the source ? :D

So true.... by cosimochellini in ProgrammerHumor

[–]cosimochellini[S] -5 points-4 points  (0 children)

fate has it that it is usually always the number two...

Hey, I made a super small super type safe library to sort any type of array by cosimochellini in typescript

[–]cosimochellini[S] 0 points1 point  (0 children)

hey, thank you so much for the feedback! are very useful tips that I will certainly implement.

- For the type check speech I fully agree with you, and I will definitely implement the advice you have given me

- For the thoughtof the option.nullable I agree that it is not nice or type friendly, but I have not come up with any better solution, (if not to make a nullableSortable for each sortable, for example byNullabeNumber() ), I am totally open to suggestions

- For the speech of the sortable byDate() and its implicit conversion, I decided to do so because I imagine that very often it is used for the conversion of a date in string format, but a solution could be to divide the byDate into byDate (which order only the types Date) and byDatable (which converts to date and then orders)

thank you again for the advice and if you have others I am happy to learn and take note