81
submitted 7 months ago by m_f@midwest.social to c/loops@midwest.social
you are viewing a single comment's thread
view the rest of the comments

On the array sort…that is clever but it doesn’t return those values to something you can use; it just sorts them on screen. I respect the cleverness, but yeah, not useful.

This is not the reason it isn't useful. The function could just as easily modify an array as print; you could also keep a list (or an atomic integer if that functionality is available) of which have been sorted and spin until it shows that every member has been sorted. Taking n milliseconds to sort an array whose highest element is n, with the cost of all of the thunks, plus the potential for a (very rare) race condition... not so great.

Regardless, I'd hire either of these programmers if there weren't red flags elsewhere.

this post was submitted on 21 Dec 2024
81 points (100.0% liked)

Fun Loops ▶️

1048 readers
2 users here now

Posting interesting/cool/funny videos from Loops here

https://loops.video/

Thanks to @Bluefruit@lemmy.world for the icon and banner!

Discussion of and questions about Loops should go over in !loops@lemmy.world

If the loop you're posting isn't original content uploaded by the creator, prefix the title with ♻️ or [R] (if you don't feel like typing an emoji) for "reposted". For example, ♻️ Cute dog or [R] Cute dog.

Note that some loopers upload their loops to multiple platforms including Loops, so you might see insta/tiktok logos on videos that aren't marked as reposts.

If you know the source for a loop marked ♻️/[R], please comment with it!

Rules:

  1. Don't be a dick
  2. Don't make me add more rules

founded 8 months ago
MODERATORS