I use a 2010 MacBook Air with Debian and i3 for writing and coding practice using vim and cmdline tools. No web browser installed. For those tasks I'm much more productive on it than on any modern machine I own. I just wish the battery life were better.
I did follow iFixit and replaced the battery and SSD. Battery life is still terrible compared to a modern laptop. It's just a limitation of 14 year old tech.