The better mindset, in my opinion, is that you can choose to do something nice for others for no reason other than to help someone else out.
Kind of weird to make this point at the end, right after you apparently say you intentionally make the cleaning jobs harder. As a cleaner if people make more of a mess of things, you'll just get overwhelmed with too much work and then things will look messy and you'll get fired. Cleaners usually don't get raises, and especially not raises for doing more work. You maybe get token raises when you threaten to leave due to low pay and the managers can't find a replacement straight away.
Nobody ever saw a clean office and came to the conclusion, "Our cleaning staff must be lazing about because someone else is cleaning for them, we should fire them all!"
This has become a tortuous argument which on the surface seems to be for justifying being disrespectful or lazy.
I guess it's just another way in which capitalism abstracts what is really a relationship between people into a relationship between bits of capital.
Like, the issue I am having with this thread is that a ton of people who seem to have some concept of what the ethical thing to do here is--and I don't even necessarily disagree with the concluding actions!--but I don't think they actually have the perspective to realize that the reasons why those actions might or might not be ethical are completely different from what one might intuitively expect due to the incentive structure of working for a company under capitalism. And so then you are all taking this idea of that ethical conclusion and trying to make me feel shitty for how I treat the janitors somehow when the janitors are categorically not the people you are helping with your ethical outcomes :/. Yes: the result of this thought process applied en masse would be horribly inefficient and seemingly costly for a ton of people, but the janitors would call you a hero as they are paid by the hour.
My context: while I myself am yet another privileged software developer, I am also a strongly-left-leaning elected government official who often has deep heart to hearts with friends who are union organizers... people who fight daily on behalf of people in these situations, and it is when I channel them--not some heartless asshole who refuses to even look at janitors--that I feel most strongly about these issues. The idea that you are doing someone a favor by going out of your way to not help them in their personal life but to do part of their job is just such a strange thought process to me... I have houseless people in the area CONSTANTLY asking for work, and if there were tasks that needed to get done maybe we could hire them to the beautification program we're in charge of (which explicitly works with houseless employees); so sure: if you care about them, you might literally litter our streets with trash ;P.
The reason to maybe not cause messes (and I don't, because while I am not an asshole to the janitors I am not optimizing for them over everyone else) is not to be kind to these people in the way the person I replied to seems to think: it is because it is an inefficiency--a cost to the system as a whole--and that cost to the system will be born by someone else, whether it be tracked directly back to you or indirectly cause increased costs for food or other staples. The fewer people who work at supermarkets or restaurants, the cheaper food will be--your taxes are paying for our beautification program, so your taxes might be lower if there is less work to be done--but this comes at a disproportionate cost to the people who relied on those jobs, so don't think you are doing them the favor... if you were truly wanting to do them a favor, you would, in fact, do this awkward thing of trying to cause messes.
What I don't do, though: go out of my way to clean up messes caused by other people when I know someone else has a job to clean them. Example: I now no longer clean streets myself if I walk past a pile of trash... I pull out an app on my phone and take a photo of the trash so the aforementioned local beautification program sends a person out who is excited to be paid money and the program can show that it is being successful to the community and thereby people will be OK with the taxes being paid for it. The person who was sent out to pick up the trash gets to have the dignity of a job instead of me handing them money (which I also do!!! but they really hate taking the money from me like that, and it frankly isn't scalable or fairly allocated anyway). Meanwhile, I spend my time working on software or whatever I do which earns more money than this person was paid to pick up the trash in the same amount of time, which helps bring money into the area to pay for the local taxes. This is almost entirely a win/win/win.
We're talking simple respect. The strawman of 'pick up their job function' appeared out of thin air.
Sounds to me like a very inefficient way of accomplishing tasks. Marginal cost of everyone doing their own simple task is less than the cost of employing a janitor. Furthering the logic, we should litter the place for more janitors to get employed.