#object-oriented-programming
Read more stories on Hashnode
Articles with this tag
Favor immutability to retain control of your objects · TL;DR: Use immutable objects to prevent unexpected changes caused by...
You deallocate things in your destructors · TL;DR: Don't use destructors. And don't write functional code there. Problems Coupling Unexpected...
You have a clear responsibility for the wrong object · TL;DR: Don't be afraid to create or overload the proper objects. Problems Bijection...
Stop thinking of data as attributes. They are only needed to back your behavior · TL;DR: Don't focus on accidental properties. You won't need many of...
Classes are my precious · TL;DR: Classes represent concepts. And concepts are singular. Problems Naming Code Standards Solutions Rename classes to...
Your classes are abstract, final, or undefined · TL;DR: If your language has the right tool, your classes should be either abstract or...