• 0 Posts
  • 29 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle





  • It should be possible, but the answer is going to depend on your implementation, what libraries you are using, and so on.

    For example, if the play sound action is synchronous, then maybe you could start it up in another thread, and interrupt that thread if you want to cancel the sound.

    If it’s asynchronous, maybe you need to retain a reference to the sound object and then invoke a stop() call when the other button is pressed.









  • On “we as people can perceive imperial temperatures a lot better than metric,” I’d agree to disagree here - Celsius is pretty straight-forward. Temperate is temperature, it’s just about what numbers you’re assigning to which temperatures.

    0°C is when water freezes, and 100°C is when water boils. A 10°C day is cold, a 20°C day is mild, a 30°C day is hot, and a 40°C day is when you melt.

    Whatever you grew up with is probably what is going to be easiest for you to comprehend, but Celsius is no more difficult or less perceptible, just a different value range.


  • Ten years ago I’d say “wtf” but then I had ube keso (purple yam and cheese) ice cream. I don’t understand why it is not awful and is in fact delicious, and now I think the only valid way to judge an ice cream flavor (within reason) is to ignore the list of contents and just taste it.