Return a Reference! - Object Oriented Purity

Published: 02 November 2020
on channel: veganaiZe
23
1

If you mutate an object then return that object. In other words, if a method on an object has a side effect then return a reference to itself -- don't waste that return value!

In this video I describe a comma separator style workaround for use when dealing with bad object oriented designs in Python, specifically.


Watch video Return a Reference! - Object Oriented Purity online without registration, duration hours minute second in high quality. This video was added by user veganaiZe 02 November 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 23 once and liked it 1 people.