In these smells the type is part of the method name creating a redundant naming convention.

🚨 Problems

In modern languages we have much richer type systems, and the compilers remember and enforce the types. What’s more, there is a trend toward smaller classes and shorter functions so that people can usually see the point of declaration of each variable they’re using.

Nowadays HN and other forms of type encoding are simply impediments. They make it harder to change the name or type of a variable, function, or class. They make it harder to read the code. And they create the possibility that the encoding system will mislead the reader.


const appTitleString: string = "callstack";

âś… Solution


const appTitle: string = "callstack";

💪🏽 Benefits

  • Improving code maintainability.
  • Clean Code - Page 23 - Hungarian Notation