TLDR Web Dev · OPINIONS & ADVICE
I CODED SOMETHING DUMB AND I'M PROUD OF IT
Summary from the TLDR Web Dev newsletter
This developer added a quicksort animation feature to a game to visually sort items while handling potential changes in the list being sorted. Instead of optimizing the quicksort algorithm to resume from its last state, the developer chose a simpler, inefficient solution (on purpose): the sorting illusion is created by repeatedly running the algorithm from the start until a change occurs.