Skip to content
Artwork for Programming Tech Brief By HackerNoon
Programming Tech Brief By HackerNoon · Sunday · 6 min

Code Smell 321 - Getter Piggybacking

This story was originally published on HackerNoon at: https://hackernoon.com/code-smell-321-getter-piggybacking. Don't reuse an existing getter to bolt on new business logic from outside the object. Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #programming, #code-smell, #encapsulation, #feature-envy, #object-oriented-programming, #getter-methods, #law-of-demeter, #hackernoon-top-story, and more. This story was written by: @mcsee. Learn more about this writer by checking @mcsee's about page, and for more stories, please visit hackernoon.com. Don't reuse an existing getter to bolt on new business logic from outside the object.

0:00-6:49

transcript

No transcript — this publisher did not publish one.

show notes

This story was originally published on HackerNoon at: https://hackernoon.com/code-smell-321-getter-piggybacking.
Don't reuse an existing getter to bolt on new business logic from outside the object.
Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #programming, #code-smell, #encapsulation, #feature-envy, #object-oriented-programming, #getter-methods, #law-of-demeter, #hackernoon-top-story, and more.

This story was written by: @mcsee. Learn more about this writer by checking @mcsee's about page, and for more stories, please visit hackernoon.com.

Don't reuse an existing getter to bolt on new business logic from outside the object.

links13