Programming State meme

meme; painting man and woman; how is life? stateless

The state of a class is composed from all the properties of that class that are changeable or mutable

Change is inevitable, but also dangerous. 

State leads to a lot of bugs. 

Immutable objects are very good because they don’t change state. 

But it doesn’t matter how much you try to avoid it, you will have objects with state. 

This meme is part of the “What is state in programming and why is it important” episode from the Clean Code course.

You can watch the Clean Code courses here:

- Watch Clean code with Java examples course on Udemy
- Watch Clean code with PHP examples course on Udemy
- Watch this Clean code with Java examples - Basics for free here AND get 2 FREE months of Premium

Leave a Reply