This paper proposes the resource-based programming paradigm as support for the design, implementation, debugging and tuning of distributed applications. This paradigm considers components as resource managers and expresses the application logic through scriptable transactional resource manipulations. In this paper, we describe the benefits deriving from such a paradigm both from a theoritical and from a practical point of view. We first introduce the resource-based paradigm in itself and the CLF middleware  that implements it. We then illustrate through an example application the various advantages of using it in the context of distributed applications.