The intent is to reduce the likelihood of these conditions developing by encouraging exposure to sunlight and far distances as a child.
There’s an interesting middle ground that’s being studied: “peripheral defocus” lenses. The idea, as I understand it, is to give sharp central vision, but to blur the peripheral vision in a way that encourages the eyes to grow appropriately.
My dad grew up on a farm, and rarely spent much time inside, still needed strong glasses all his life to see.
Either computers are quick to ruin eyesight or it was genetic.
Farsighted though is awfully convenient for staring at screens with a good prescription - at worst, my vision improves over time. :)