>>6000211Jebus grist, that code example breaks SOLID principles on many levels. First of all, the method reeks of envy on the MyDesktop class. Second, the MyDesktop instance should be provided through a parameter to the method, preferrably using an interface for decreased coupling. Third, the happiness value is completely unconnected to the provided Image parameter, so why bother returning it? Just confuses things, if the purpose is to calculate the happiness based on a provided Image parameter, place this calculation logic in a separate method instead.
Excuse the rant.