News for hackers. Stuff that matters.
Re: by adrianmonk on Sunday November 05, 2023 @09:18AM (#38151311)
> and add visualisations to it

Might I suggest a different animation. The current one swaps two elements (bars) by vertically shrinking the taller bar and growing the shorter one. Instead, the bars should stay the same height but move horizontally. I would rather see values move than slots in the array morph to the new value they should hold. The current animation feels like you are pumping water from one tank to another.

Re: by SonOfLilit on Sunday November 05, 2023 @10:41AM (#38152068)
The visualization you're suggesting would be orders of magnitude harder to create, since this one visualizes what actually happens in his algorithm and the better one would require an algorithm that tracks more things.
Re: by appplication on Sunday November 05, 2023 @11:01AM (#38152273)
The current one also broke in my case (mobile safari). The three smallest bars just sort of disappeared right before the last swap.
Re: by sentientslug on Sunday November 05, 2023 @11:47AM (#38152803)
It’s noted on the page right above the visualization that it doesn’t work on mobile
Re: by michaelr1998 on Sunday November 05, 2023 @07:37PM (#38157372)
you must be a blast at parties /s