Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
My roommate's 2006 Macbook runs Snow Leopard just fine, with some upgraded hardware - SSD, maxed out (2GB) RAM.

My own mid-2009 Macbook Pro is still going strong (Sierra), with upgraded hardware.
 
Late 2008 Alum unibody still running on El Capitan with RAM of 8 vs 2 GB and new SSD and battery. Now only used for home duty as internet access point. Daily work is done with 2017 MBB 15".
 
My 2007 MBP was in fine shape until 2013, when it died of complications due to old age. I'm sure I could have gotten it up and running again, but it wasn't worth it given how much it had slowed down.
 
Older upgradable ones, yeah. 2011 models upgraded with 16GB RAM + SSD are still able to run most things flawlessly.

Newer ones you can't upgrade? Not really. They'll get slower and slower and you can't upgrade them with the technology of the day.
 
We still have an early 2008 MacBook, so close to 10 years. The original battery still works but is swollen so the MacBook is permanently plugged in. The only problem we had with it was with videos in web sites and on Facebook. Some would not open in Safari but were OK in Chrome.

Just a week or so ago we replaced it with a base model Mac mini which meets my wife needs.
 
I actually think a 2017 MacBook Pro has a better chance at being used 10 years than the 2007 MacBook Pro had. Sure, you could upgrade the RAM and Hard Drive with the older machine - but the SSDs in the new MBPs are lightning fast, they probably will still be absolutely fine to use in ten years time. In contrast, the 2.5" 5400 rpm HDDs Apple used ten years ago felt relatively slow, even back then.

As for RAM, yeah, you could upgrade the machines back then after you bought them - but only up to the amount the CPU supports. Now, you have to make that decision when you buy the notebook, however, the limit to the maximum possible RAM stays the same.

But more importantly, you couldn't upgrade the CPU or GPU in either machine. And this is were the 2007 MBP struggles the most when you use it today - even a 720p YouTube video would severely stress the CPU. Will current CPUs hold up better in ten years time? We won't know. But I have a feeling that streaming a 720p video on a 2017 MBP in 2027 will be more fun than doing the same task on a 2007 MBP in 2017.

Will you able to get any demanding work done on any 10 year old computer? Probably not. The additional time the machine takes to do the tasks you want it to most probably would lose far more money than what a new notebook costs.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.