Name suggests Boolean but type does not

The name of an attribute suggests that its value is true or false, but its declaring type is not Boolean.

Example: attribute isReached of type int[] where the declared type and values are not documented.

Reference

Venera Arnaoudova, Massimiliano Di Penta, Giuliano Antoniol. “Linguistic antipatterns: what they are and how developers perceive them". in Empirical Software Engineering (ESEM), 21(1), Feb 2016. 104-158. 10.1007/s10664-014-9350-8


Implementation Smells

Home

All rights reserved (c) Tushar Sharma 2017-23.