We don’t have moores law anymore. Why are the chips obseleting so quickly?
Markets for electronics have momentum, and estimating that momentum is how chip producers plan for investment in manufacturing capacity, and how chip consumers plan for deprecation.
Of course this does make some moderate assumptions that it was a solid build in the first place, not a flimsy laptop, not artificially made obsolete/slow, etc. Even then, "install an SSD" and "install more RAM" is most of everything.
Of course, if you are a developer you should avoid doing these things so you won't get encouraged to write crappy programs.