There's a lot of talk about "networking" to find jobs or opportunities (like your own startup or freelancing) but one thing networking means is building relationships with people you have worked with in the past. That doesn't mean sucking up, but just being known to be reliable and dependable makes you a safer bet if that person is in a position to hire or recommend you.
That manager or coworker you did a project with a few years ago might have moved on to another company and is someone you can reach out to. If you dropped out of a project mid-way without cause leaving them in the lurch, that's something they are going to remember.
Sometimes of course a job or project can be a nightmare and you want to have nothing to do with those people ever again, which is understandable. But otherwise I would try to be professional as possible and leave options open, and if that means giving your notice and coasting a few weeks, then do so.
Worker solidarity doesn't mean you fuck over capital any time you can, even if it makes your fellow workers' lives harder. The company cares way less about you quitting suddenly than your coworkers do. That's exactly why they don't care about laying people off with no notice.
You may get faux revolutionary warm fuzzies by quitting to screw the man, but you're probably screwing your friends more than your foes.
Of course I know the company might escort me out when I give notice instead of letting me serve out the time, and of course that would hurt my feelings, but when I regained my composure I would see that it reflects poorly on them, not on me, if they do that lame nonsense.
So I think it's really sad for companies (and also employees) that for whatever reasons they don't feel they can give notice in this same way.
But I certainly don't want to give up something that I value for myself, out of spite. That makes no sense to me.