---
title: "Comment by Rodrigo on \"Code Smell 68 - Getters\" | Hashnode"
description: "Interesting article Maxi Contieri . If I get it right (see what I did there ) getters could be fine to be used if we assign a better name by removing the ¨get¨p"
url: "https://hashnode.com/posts/code-smell-68-getters/608a21651bb72c5818620985/comment/608b6321f80abf020dc60c54"
---

[Discussion](https://hashnode.com/posts/code-smell-68-getters/608a21651bb72c5818620985)

Comment [Code Smell 68 - Getters](https://hashnode.com/posts/code-smell-68-getters/608a21651bb72c5818620985)

[Rodrigo](https://hashnode.com/@rodrigomd)

[Apr 30, 2021](https://hashnode.com/posts/code-smell-68-getters/608a21651bb72c5818620985/comment/608b6321f80abf020dc60c54)

Interesting article [Maxi Contieri](https://hashnode.com/@mcsee). If I get it right (see what I did there ) getters could be fine to be used if we assign a better name by removing the ¨get¨prefix and using a domain name instead. Another restriction is that we should use them only on safe operations, such as reading.

They become a problem when we expose the object internals to mutate its data from the outside, breaking encapsulation as consequence, is that right?
