Identifying class name inconsistency in hierarchy: a first simple heuristic
Autor: | Nicolas Anquetil, Moussa Saker, Stéphane Ducasse, Abdelghani Alidra |
---|---|
Přispěvatelé: | Université Badji Mokhtar Annaba (UBMA), Analyses and Languages Constructs for Object-Oriented Application Evolution (RMOD), Inria Lille - Nord Europe, Institut National de Recherche en Informatique et en Automatique (Inria)-Institut National de Recherche en Informatique et en Automatique (Inria)-Centre de Recherche en Informatique, Signal et Automatique de Lille - UMR 9189 (CRIStAL), Centrale Lille-Université de Lille-Centre National de la Recherche Scientifique (CNRS)-Centrale Lille-Université de Lille-Centre National de la Recherche Scientifique (CNRS), Université Badji Mokhtar - Annaba [Annaba] (UBMA) |
Jazyk: | angličtina |
Rok vydání: | 2017 |
Předmět: |
Discrete mathematics
Class (computer programming) Vocabulary Theoretical computer science [INFO.INFO-PL]Computer Science [cs]/Programming Languages [cs.PL] Hierarchy (mathematics) Computer science Heuristic media_common.quotation_subject 020207 software engineering 02 engineering and technology [INFO.INFO-SE]Computer Science [cs]/Software Engineering [cs.SE] ACM: D.: Software/D.2: SOFTWARE ENGINEERING/D.2.2: Design Tools and Techniques Task (project management) Simple (abstract algebra) 020204 information systems 0202 electrical engineering electronic engineering information engineering Pharo media_common |
Zdroj: | IWST 2017-12th International Workshop on Smalltalk Technologies IWST 2017-12th International Workshop on Smalltalk Technologies, Sep 2017, Maribor, Slovenia. pp.14:1--14:8, ⟨10.1145/3139903.3139920⟩ IWST |
Popis: | International audience; Giving good class names is an important task. Good programmers often report that they take several attempts to find an adequate one. Often programmers do not name consistently classes within a package, project or hierarchy. This is a problem because it hampers understanding the systems. In this article we present a simple heuristic (a distribution) to characterise class naming. We combine such a heuristic with structural information to identify inconsistent class names. In addition, we use this simple heuristic to give packages a shape. We applied such heuristic to 285 packages in Pharo to identify misnamed classes. Some of these misnamed classes are reported and discussed here. |
Databáze: | OpenAIRE |
Externí odkaz: |