Evaluating Co-Occurrence of GOF Design Patterns with God Class and Long Method Bad Smells
Resumo
Design patterns are general reusable solutions to common recurring problems in software projects. These solutions, when correctly applied, are supposed to enhance modular and flexible structures in software. The aim of this work is to study the occurrences of God Class and Long Method bad smells in software systems developed with design patterns. To achieve this aim, we carried out a study with five Java project, in order to: (i) investigate if the use of GOF design patterns avoid the occurrences of the bad smells God Class and Long Method, (ii) identify co-occurrences of the GOF design patterns with these bad smells, and (iii) identify the main situations that lead software systems to present these co-occurrences. The results obtained suggest that Composite and Factory Method have a low co-occurrence with these bad smells, and Template Method and Observer have a high co-occurrence with God Class and Long Method, respectively. In addition, we have identified that the misuse of design patterns and the scattering and crosscutting concerns has contributed to the emergence of such co-occurrences.
Referências
Masson, E. et al. A governança de TI autônoma na APF. In: Simpósio de Excelência em Gestão e Tecnologia, 11, 2014. Anais. Rio de Janeiro: FIRJAN, 2014. p. 1-17.
Universidade Federal de Lavras (UFLA). Plano Diretor de Tecnologia da Informação, para os anos de 2015 a 2016 na Universidade Federal de Lavras (PDI) Editora da UFLA, 2015. 192 p.
Prado, E. P. V.; Mancini, M.; Barata, A. M.; Sun, V.. Governança de TI em Organizações do Setor de Saúde: um Estudo de Caso de Aplicação do COBIT. XII Simpósio Brasileiro de Sistemas de Informação (SBSI 2016). Florianópolis, maio, 2016.
Rodrigues, A.; Santos, D.; Neto, P.; Almeida, W.. Avaliação da Capacidade dos Processos de Governança de TI baseada no Cobit 5: Estudo realizado em um órgão da Administração Pública Federal no Maranhão. CONTECSI USP - International Conference on Information Systems and Technology Management - ISSN 2448-1041, Brasil, may. 2015.
Information Systems Audit and Control Association (ISACA). COBIT 5: Modelo Corporativo para Governança e Gestão de TI da Organização. ISACA, 2012. 98 p.
Information Systems Audit and Control Association (ISACA). COBIT 5: Enabling Process. ISACA, 2012.
International Organization for Standardization/ International Electrotechnical Comission. ISO/IEC 15504 - Information Technology - Process Assessment, International Standard (IS)”2003.
Fernandes, A. A.; Abreu, V. F.. Implantando a Governança de Ti - da Estratégia à Gestão dos Processos e Serviços. Brasport - 3ª Ed, 2014.
Information Systems Audit and Control Association (ISACA). COBIT 5: Process Assessment Model (PAM): Using COBIT 5. ISACA, 2013.
Information Systems Audit and Control Association (ISACA). COBIT 5: Self-Assessment Guide Using COBIT 5. ISACA, 2013.