On the Use of Metaprogramming and Domain Specific Languages: An Experience Report in the Logistics Domain

  • Pedro Henrique Teixeira Costa UnB
  • Edna Dias Canedo UnB
  • Rodrigo Bonifácio UnB

Resumo


In this paper we present the main design and architectural decisions to build an enterprise system that deals with the distribution of equipment to the Brazilian Army. The requirements of the system are far from trivial, and we have to conciliate the need to extract business rules from the source code (increasing software flexibility) with the requirements of not exposing the use of declarative languages to use a rule-based engine and simplifying the tests of the application. Considering these goals, we present in this paper a seamless integration of meta-programming and domain-specific languages. The use of meta-programming allowed us to isolate and abstract all definitions necessary to externalize the business rules that ensure the correct distribution of the equipment through the Brazilian Army unities. The use of a domain specific language simplified the process of writing automatic test cases related to our domain. Although our architecture targets the specific needs of the Brazilian Army, we believe that logistic systems from other institutions might also benefit from our technical decisions.
Palavras-chave: Domain Specific Languages, Generative Programming, Military Logistics, Software Architecture
Publicado
17/09/2018
COSTA, Pedro Henrique Teixeira; CANEDO, Edna Dias; BONIFÁCIO, Rodrigo. On the Use of Metaprogramming and Domain Specific Languages: An Experience Report in the Logistics Domain. In: SIMPÓSIO BRASILEIRO DE COMPONENTES, ARQUITETURAS E REUTILIZAÇÃO DE SOFTWARE (SBCARS), 12. , 2018, São Carlos/SP. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2018 . p. 102–111.