paint-brush
Learn How to Live with Immutable and Reliable Objects in Javaby@artemsutulov
583 reads
583 reads

Learn How to Live with Immutable and Reliable Objects in Java

by Artem Sutulov1mMay 28th, 2022
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

When writing complex projects, it’s essential to develop a good code culture. Use of immutable and consistent objects is one of the most important ones. You can neglect this and write complex objects as standard ones, but it will be a source of bugs when the project grows enough. In this article, I’ll show how to make objects immutable and make them eloquently and efficiently. The default way won’t have setters with an object with no setters. The only way to do that is to create a new instance and place new values to the responsible class itself.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Learn How to Live with Immutable and Reliable Objects in Java
Artem Sutulov HackerNoon profile picture
Artem Sutulov

Artem Sutulov

@artemsutulov

I'm a professional FullStack Software Engineer, currently working for Revolut as Software Engineer (Backend).

Learn More
LEARN MORE ABOUT @ARTEMSUTULOV'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Artem Sutulov HackerNoon profile picture
Artem Sutulov@artemsutulov
I'm a professional FullStack Software Engineer, currently working for Revolut as Software Engineer (Backend).

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite