I agree, there seems to be a level of criticism of marketing bordering on irrational among devs, it's almost like it's trendy to hate on marketing.
For devs who currently think this way, I suggest thinking about it more deeply from the perspective of a developer: Let's say you want to start a company/startup from a passionate idea you had. What do you think happens when you build it? In reality, do you truly expect "build it and they will come"? What happens when you bought a domain, put up your product on the web, or the app store? I can tell you what will happen: there will be zero people signing up to use it. Posting it on a Show HN or Product Hunt is an illusion of ease to publicize a product. A PH launch is a carefully planned and curated process involving hours and hours of marketing work to prepare for. A Show HN post will go unnoticed with no clicks 99.9% of the time.
And if you just work in a bigger company, as a non-founder, and say "this isn't my problem, I just build stuff for a job", what do you think the founders did to build their company so there are users who sign up and pay?
It's literally an arms race. If nobody put effort into marketing; quality would bubble to the top. If everyone spends some amount of time optimising their seo, tweaking for the algorithm, etc, then in essence, nobody has (and thus, in theory, quality would bubble to the top). The situation we actually have is worse than both of these; bad actors spend the most on marketing, with the more marketing and the more effective marketing being for the worst products.
I can agree that marketing is necessary, but it's not irrational to resent that one's attention is being manipulated with or that internet - which is an amazing technology by itself - has become a lot less useful than it could be basically because so many people decided to do marketing and sales on it.
For devs who currently think this way, I suggest thinking about it more deeply from the perspective of a developer: Let's say you want to start a company/startup from a passionate idea you had. What do you think happens when you build it? In reality, do you truly expect "build it and they will come"? What happens when you bought a domain, put up your product on the web, or the app store? I can tell you what will happen: there will be zero people signing up to use it. Posting it on a Show HN or Product Hunt is an illusion of ease to publicize a product. A PH launch is a carefully planned and curated process involving hours and hours of marketing work to prepare for. A Show HN post will go unnoticed with no clicks 99.9% of the time.
And if you just work in a bigger company, as a non-founder, and say "this isn't my problem, I just build stuff for a job", what do you think the founders did to build their company so there are users who sign up and pay?