---
title: "Comment by Yonatan Karp-Rudin on \"Code Smell 22 - Helpers\" | Hashnode"
description: "Great article! a few small typos: -the function getCategory() gets the user&#39;s score, but in its usage, you&#39;re passing the entire user object. In the rig"
url: "https://hashnode.com/posts/code-smell-22-helpers/5facb262fa438d6532c7d74c/comment/63983bbd32e52b31f1388c58"
---

[Discussion](https://hashnode.com/posts/code-smell-22-helpers/5facb262fa438d6532c7d74c)

Comment [Code Smell 22 - Helpers](https://hashnode.com/posts/code-smell-22-helpers/5facb262fa438d6532c7d74c)

[Yonatan Karp-Rudin](https://hashnode.com/@yonatankarp)

[Dec 13, 2022](https://hashnode.com/posts/code-smell-22-helpers/5facb262fa438d6532c7d74c/comment/63983bbd32e52b31f1388c58)

Great article! a few small typos:

\-the function `getCategory()` gets the user's score, but in its usage, you're passing the entire user object.

-   In the right example, the naming function gets `userscore` as the paramer, while it should (for the best of my understanding) be `user`.
    
-   Same goes for the score that in the right approach accepts `userscore1` as parameter (which for me also feels a bit like a code smell as there is only 1 parameter)
