Artwork

Treść dostarczona przez HackerNoon. Cała zawartość podcastów, w tym odcinki, grafika i opisy podcastów, jest przesyłana i udostępniana bezpośrednio przez HackerNoon lub jego partnera na platformie podcastów. Jeśli uważasz, że ktoś wykorzystuje Twoje dzieło chronione prawem autorskim bez Twojej zgody, możesz postępować zgodnie z procedurą opisaną tutaj https://pl.player.fm/legal.
Player FM - aplikacja do podcastów
Przejdź do trybu offline z Player FM !

Finding the Stinky Parts of Your Code: Code Smell 256 - Mutable Getters

2:56
 
Udostępnij
 

Manage episode 426593035 series 3474159
Treść dostarczona przez HackerNoon. Cała zawartość podcastów, w tym odcinki, grafika i opisy podcastów, jest przesyłana i udostępniana bezpośrednio przez HackerNoon lub jego partnera na platformie podcastów. Jeśli uważasz, że ktoś wykorzystuje Twoje dzieło chronione prawem autorskim bez Twojej zgody, możesz postępować zgodnie z procedurą opisaną tutaj https://pl.player.fm/legal.

This story was originally published on HackerNoon at: https://hackernoon.com/finding-the-stinky-parts-of-your-code-code-smell-256-mutable-getters.
Avoid mutable getters to protect your code's integrity and encapsulation. Learn how to return immutable copies in Java for safer and more predictable coding
Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #clean-code, #code-quality, #code-refactoring, #refactor-legacy-code, #mutable-getters, #immutable-objects-java, #java-collections, #immutable-data-structures, 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.
Avoid exposing mutable getters in your code to maintain object integrity and encapsulation. Use immutable copies or data structures to prevent unintended modifications and ensure thread safety.

  continue reading

297 odcinków

Artwork
iconUdostępnij
 
Manage episode 426593035 series 3474159
Treść dostarczona przez HackerNoon. Cała zawartość podcastów, w tym odcinki, grafika i opisy podcastów, jest przesyłana i udostępniana bezpośrednio przez HackerNoon lub jego partnera na platformie podcastów. Jeśli uważasz, że ktoś wykorzystuje Twoje dzieło chronione prawem autorskim bez Twojej zgody, możesz postępować zgodnie z procedurą opisaną tutaj https://pl.player.fm/legal.

This story was originally published on HackerNoon at: https://hackernoon.com/finding-the-stinky-parts-of-your-code-code-smell-256-mutable-getters.
Avoid mutable getters to protect your code's integrity and encapsulation. Learn how to return immutable copies in Java for safer and more predictable coding
Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #clean-code, #code-quality, #code-refactoring, #refactor-legacy-code, #mutable-getters, #immutable-objects-java, #java-collections, #immutable-data-structures, 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.
Avoid exposing mutable getters in your code to maintain object integrity and encapsulation. Use immutable copies or data structures to prevent unintended modifications and ensure thread safety.

  continue reading

297 odcinków

همه قسمت ها

×
 
Loading …

Zapraszamy w Player FM

Odtwarzacz FM skanuje sieć w poszukiwaniu wysokiej jakości podcastów, abyś mógł się nią cieszyć już teraz. To najlepsza aplikacja do podcastów, działająca na Androidzie, iPhonie i Internecie. Zarejestruj się, aby zsynchronizować subskrypcje na różnych urządzeniach.

 

Skrócona instrukcja obsługi