• 👁️👄👁️
    link
    fedilink
    English
    51
    edit-2
    11 months ago

    Shouldn’t it be a float that goes between 0 and 1 instead of an int. In this situation they’d be the same thing, considering 1 would be max lol.

  • @zqwzzle@lemmy.ca
    link
    fedilink
    English
    4011 months ago

    I guess there’s not enough water to use a float unless you’re in a bathtub.

  • @scarrtt@lemm.ee
    link
    fedilink
    38
    edit-2
    11 months ago

    I travel a lot and I swear I’ve never seen the same shower design twice. There’s so many different freakin’ ways to deliver a stream of water to your head and they nearly all require some level of finessing. I’m assuming it all stems from an 1800s court case about patents but fuck that judge and everyone involved that day

    • @thehatfox@lemmy.world
      link
      fedilink
      English
      2111 months ago

      It seems that hotels somehow always install the most obscure and convoluted shower designs. I’ve never had too much trouble with showers in people’s homes, but every time I shower in a hotel room I feel like I’m trying to operate an oddly temperamental steam engine.

  • TheLinuxGuy
    link
    fedilink
    English
    17
    edit-2
    11 months ago

    How it really works:

    mpf_t temperature;
    
    If confused...

    It’s arbitrary sized floating precision number provided in LibGMP and you can find more information about mpf_t here.

  • @BorgDrone
    link
    English
    1011 months ago

    Thermostatic shower mixers are not a thing where you live?

    • NikkiNikkiNikki
      link
      fedilink
      911 months ago

      Not common in the US I believe, or at least I haven’t heard or seen one of them.

      You just gotta “guess” what’s correct and then feel the water coming out

      • @mercano@lemmy.world
        link
        fedilink
        English
        2111 months ago

        In the house I grew up in, you’d also have to hope no one flushed the downstairs toilet. If so, the cold water pressure would suddenly drop, leaving a lot more hot water coming out of the shower head.

      • @BorgDrone
        link
        1411 months ago

        Weird, they are super common here in the Netherlands. Not expensive either. You just set it to a temperature and it’ll keep it constant.

          • Haus
            link
            fedilink
            511 months ago

            If I’m thinking of the same device, the one I used in Sweden and Norway, it’s fantastic. It’s in the shower itself, so you don’t have to contend with 30m of cold pipes between a less effective water heater and the nozzle.

          • @BorgDrone
            link
            311 months ago

            I can highly recommend it. Get a good name-brand one, like Grohe. Example.

    • @noobnarski@feddit.de
      link
      fedilink
      111 months ago

      Yeah, I havent had a problem setting the shower temperature since I live in a house that has one.

      Its great.

  • @iminahurry@discuss.tchncs.de
    link
    fedilink
    English
    911 months ago

    Instructions

    while temperature < comfortable_temperature: temperature += 1

    Interpretation

    while temperature < freezing: on toggle(temperature += boiling)

  • @FiniteLooper@lemm.ee
    link
    fedilink
    English
    811 months ago

    And then someone comes over who isn’t a programmer and they have to take a shower:

    Error: cannot convert “warm” to integer

  • @yum13241@lemm.ee
    link
    fedilink
    511 months ago

    Where I live, I have to spend 500 years to either get volcano-like water, or Ice Age water. Moving it one atom completely changes the temperature.

    • @cynar@lemmy.world
      link
      fedilink
      111 months ago

      If yours uses a thermal sensing element (not just mixing blind),I’ve found running it through its full temperature range helps a lot. I suspect limescale and other crap build up on the thermal element. It adds several years on to the life of the mixer. Descaling it would likely also work, but involves removing it from the pipes, to get the cleaner in.

    • sour
      link
      fedilink
      9
      edit-2
      11 months ago

      shower only has 2 temperatures