Controversial opinion but I used to live in Brooklyn and the trash piles were... fine. It's only one day a week... it's just that every neighborhood is a different day. So tourists, going to different neighborhoods every day, see trash piles all over the city every day and are like "omg! this is so gross" when people who actually live there only see the trash piles once a week. It's a bigger problem for tourists than it is for people who actually live in the city.
Having dumpsters is probably better overall but most of NYC doesn't have alleys to keep them in, so you have to have them around on the street all the time. AKA. Instead of seeing trash in front of your place once a week on trash day, you see dumpsters slowly filling up with trash every day. Is that actually an improvement? I dunno.