# Code Smell 171 - Plural Classes

> TL;DR: Classes represent concepts. And concepts are singular.

# Problems

- Naming

- Code Standards

# Solutions

1. Rename classes to singular

# Context

Naming things is hard.

We need to agree on certain rules.

# Sample Code

## Wrong

[Gist Url]: # (https://gist.github.com/mcsee/5d0c869a94d623684baefce9897563e2)
```scala
class Users
```

## Right

[Gist Url]: # (https://gist.github.com/mcsee/34c2fa54fa1629971b55d084541e9ce2)
```scala
class User
```

# Detection

[X] Automatic 

This is a syntactic rule.

# Tags

- Naming

# Conclusion

Name concepts in the singular.

Classes are concepts.

# More Info

%[https://maximilianocontieri.com/what-exactly-is-a-name-part-ii-rehab]

# Disclaimer

Code Smells are just my [opinion](https://maximilianocontieri.com/i-wrote-more-than-90-articles-on-2021-here-is-what-i-learned).

# Credits

Photo by [Anton Malanin](https://unsplash.com/@antomalani) on [Unsplash](https://unsplash.com/s/photos/twins)
  
* * *

> We are still in the infancy of naming what is really happening on software development projects.

_Alistair Cockburn_
 
%[https://maximilianocontieri.com/software-engineering-great-quotes]

* * *

This article is part of the CodeSmell Series.

%[https://maximilianocontieri.com/how-to-find-the-stinky-parts-of-your-code]
