• 0 Posts
  • 344 Comments
Joined 10 months ago
cake
Cake day: June 6th, 2024

help-circle







  • For the most part it’s best to use system provided sorting implementations, but somebody has to write those implementations, so every once in a while somebody needs to do it (in practice by looking up a reference implementation of course).

    But also it’s good to understand things like big O scaling and why we use quicksort rather than a naive insertion sort and when to use quick sort vs merge sort or some other form of stable sort.






  • WolfLink@sh.itjust.workstoScience Memes@mander.xyzshrimp colour drama
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    3
    ·
    edit-2
    14 days ago

    We don’t really detect direction of light exactly. Instead we detect the location in the eye where the light landed, and have lenses to focus the light onto our retina. That relationship does imply some of the directionality of the light, by ignoring light that goes in certain directions and relating the direction of light that does get detected to the location it ends up.







  • Using a song as an alarm sound only works if it’s locally downloaded in Music and there are some codec and bitrate restrictions as well, but this is never explained anywhere. I’ve had to figure it out by trial and error.

    At the very least there should be a warning in the Alarm app when you choose a song as an alarm that isn’t going to work.