Detalhes bibliográficos
Ano de defesa: |
2003 |
Autor(a) principal: |
Carneiro, Glauco de Figueiredo
 |
Orientador(a): |
Mendonça Neto, Manoel Gomes de
 |
Banca de defesa: |
Maldonado, Jose Carlos
,
Costa, Augusto Cesar Pinto Loureiro da
 |
Tipo de documento: |
Dissertação
|
Tipo de acesso: |
Acesso aberto |
Idioma: |
por |
Instituição de defesa: |
Universidade Salvador
|
Programa de Pós-Graduação: |
Programa de Pós-Graduação em Sistemas e Computação
|
Departamento: |
Sistemas e Computação
|
País: |
BR
|
Palavras-chave em Português: |
|
Palavras-chave em Inglês: |
|
Área do conhecimento CNPq: |
|
Link de acesso: |
http://teste.tede.unifacs.br:8080/tede/handle/tede/305
|
Resumo: |
Software refactoring - improving the internal structure of the software without changing its observable behavior - is an important action towards avoiding software quality decay. Key to this activity is the identification of portions of the source code that offers opportunities for refactoring - the so called "code bad smells". This dissertation proposes an approach to help on the detection of code bad smells through source code measurement. To solve this problem, however, other stages still not implemented are necessary. This dissertation focuses on the first step towards a concrete method to detect code bad smells through source code measurement. It presents a study that relates metrics, refactorings, and bad smells. Our study is broken into two parts. The first - top-down - part is based on the analytical application of the Goal-Question-Metric (GQM) method. The second - bottom-up - part is an empirical study on the relationship between well-known source code metrics, refactorings and code bad smells. The GQM study identified the type of metrics that are needed for each of the bad smells proposed by Fowler. The study shows that 75% of the needed metrics are not available. But, 78% of those can be implemented, while the remainder is strongly dependent on human cognitive analysis, therefore difficult if not impossible to implement. The empirical study analyzed 47 source code metrics over a case study - these metrics make up a comprehensive set among those commercially available on software measurement tools. The case study measured the variation of these metrics over a sequence of 77 refactorings. The study used two customized association measures to relate metrics and refactorings - metric-refactoring association coefficient (MRAC) and metric- refactoring strong association coefficient (MRSAC) - and the results of those associations are presented for the refactorings executed during the case study. |