You'll see official updates and custom ROMs for many years to come and the hardware will most likely still be better than midrangephones in a few years.
Looking at what it is, the new Nokia D1C will be a midrangephone, meaning it will also be priced affordably, probably a few hundred dollars will be enough to get you either.