The document presents a service-oriented approach to programming pervasive spaces using a middleware called Atlas. Atlas allows sensors and actuators to provide services that applications can access, enabling scalable and programmable smart spaces. It also addresses issues like device failures by allowing duplicate devices and dynamic recomposition of services.