If you're worried about it from an environmental perspective, it often takes more energy / resource mining / pollution to manufacture a new piece of hardware than the total amount saved from not running older hardware over a longer lifetime. Running a computer / smartphone / tablet until it doesn't work well enough for its purpose is generally better for the environment than upgrading because shiny, because it slightly reduces the demand for new hardware.