Just wondering how old is your machine before it gets replaced?
Depends on two factors acually:
- User's needs: If the laptop no more meets my requiremets in terms of performance and there is no way to improve it or at least improve it in a cost effective way (say, bigger and faster SSD, more RAM, bigger battery etc), then it's time to be replaced.
- Major failure: replacing HDDs/SSDs, memory modules, keyboards, batteries etc. is easy at least on most of the laptops I've owned (with my Macbook Pros being the exception). So, again, if a main module gives up the ghost (say the motherboard) and there is no warranty, and you can't fix it without selling a kidney, then it's time to be replaced.
Having said that, my main laptop is still a Dell Latitude E7250 which I am pretty sure it's 6 years old now (5th generation i5, 8Gb RAM, upgraded with a 512Gb SSD). No reason to replace it as it still meets my requirements (basic recordings with AF3/Reaper, office stuff, internet, a virtual machine some times etc.). When I was coding like there was no tommorow, I had two Macbook Pros, 13 and 15". If I wanted to do some serious coding, video editing work etc again I would certainly buy a way more powerful and capable laptop.
My wife still uses a 6 years old Dell Inspiron with a 4th generation i3, 4Gb of RAM and a pathetic HDD. Again, for the things she uses it for, it's still perfect and it will be that way for many many years until it craps out.
So, it all depends. If you are dealing with hardware issues that you can't resolve or you can but it's not cost effective, go ahead and buy a new one.