I think we all agree the answer isn't, "No one should make any money writing software." I also think we can agree that the answer isn't, "you should charge money for every bit of software you write."
So how do we decide which is which?
I don't want to stop being a professional software developer. I have loved being able to support myself and my family by doing my favorite activity. It has let me enjoy going to work every day for over 20 years.
I also don't think I should charge for random code work that I do for fun, though. I am not trying to monetize every minute of my day... but I do want to monetize enough of it that I can pay my mortgage, buy food, save for my retirement, and have some fun along the way.
I don't know exactly where I am going with this, but it is my gut reaction when I see a post about how horrible it is to make money off of writing software. It has to be more nuanced than that.